URL Shortener

This is a simple URL shortener service. To create shortened URLs, use the API endpoint.

API Usage

To create a shortened URL, send a POST request to http://2legitreviews.com/short/shorten with the following:

Headers:

Content-Type: application/json
X-API-Key: b00f7b71be902b811d5dbf878f2d0f83

Body:

{
    "url": "https://example.com/your-long-url"
}

Example using curl:

curl -X POST \
    http://2legitreviews.com/short/shorten \
    -H 'Content-Type: application/json' \
    -H 'X-API-Key: b00f7b71be902b811d5dbf878f2d0f83' \
    -d '{"url":"https://example.com/your-long-url"}'

Response:

{
    "id": 1,
    "code": "abc123",
    "destination_url": "https://example.com/your-long-url",
    "short_url": "http://2legitreviews.com/to/abc123"
}