Endpoint
Authentication
Requires authentication via Bearer token in theAuthorization header.
Request
JSON Body
The destination URL to shorten or redirect to.
Custom vanity path for the shortened URL (max 100 characters). Must be unique.
If vanity is already taken, the request will fail with a 400 error.
Whether the shortened URL is immediately active.
Headers
Maximum number of times the URL can be accessed before it’s disabled.
Protect the URL with a password. Users must enter this password before being redirected.
Override the return domain. Supports multiple domains separated by commas (randomly selected).
Return plain text URL instead of JSON response.
Response
JSON Response (default)
Unique identifier for the shortened URL.
Generated short code for the URL.
Custom vanity path if provided.
The destination URL.
ID of the user who created the URL.
Whether the URL is currently active.
Maximum views limit if set.
Current number of views.
ISO 8601 timestamp of creation.
Full shortened URL.
Plain Text Response
WhenX-Zipline-No-Json: true is set, returns the shortened URL directly:
Examples
Basic URL Shortening
Vanity URL
Password Protected URL
Limited Views URL
Plain Text Response
Response Example
Search URLs
You can also retrieve your shortened URLs:Query Parameters
Field to search:
destination, vanity, or code.Search term (case-insensitive, partial match).
Error Responses
400 Bad Request
- Missing
destinationfield - Vanity path already taken
- Invalid request body
403 Forbidden
- Creating URL would exceed user quota limit
Notes
The length of the generated short code is configured by the server’s
urls.length setting.If you have a user quota configured, creating URLs counts towards your
maxUrls limit.URLs with
enabled: false return a 404 when accessed until you enable them.