Endpoint
Request
Headers| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Authorization | Bearer YOUR_API_KEY | No (required for customSlug) |
The URL to shorten. Must be a valid URL. URLs containing adult content (matching patterns such as
porn, xxx, adult, sex, escort, or nsfw) are blocked.A custom slug for the short URL, for example
my-launch. Requires an authenticated request. Minimum 1 character. Returns 409 if the slug is already taken.Response
Unique identifier for the shortened URL record.
The complete short URL ready to share, for example
https://www.shorturlx.xyz/abc1234.The short code portion of the URL, for example
abc1234.The original URL that was shortened.
ISO 8601 timestamp of when the shortened URL was created.
Example request
cURL
Example response
Error codes
| Status | Description |
|---|---|
400 | Invalid request body or URL (including adult content URLs) |
401 | Invalid or revoked API key |
409 | The requested custom slug is already taken |
429 | Rate limit exceeded — see Rate limits |
500 | Internal server error |