Base URL
Response format
All responses are returned as JSON. Successful responses use HTTP200; errors use the appropriate 4xx or 5xx status code with an error field in the body.
Available endpoints
The API exposes one public REST endpoint:| Method | Path | Description |
|---|---|---|
POST | /api/shorten | Create a shortened URL |
Authentication
API keys are optional but required for custom slugs. Authenticated requests also receive a higher rate limit. Include your key as a Bearer token in theAuthorization header:
Rate limiting
Requests are rate-limited per API key (authenticated) or IP address (unauthenticated):| Type | Limit |
|---|---|
| Authenticated | 100 requests per 10 minutes |
| Unauthenticated | 10 requests per 10 minutes |
Explore the API
Authentication
Obtain an API key and authenticate your requests.
Rate limits
Understand request limits and rate limit headers.
POST /api/shorten
Reference for the URL shortening endpoint.
Code examples
Ready-to-use examples in cURL, JavaScript, and Python.