Endpoint
Authentication
Requires authentication via API token in theAuthorization header.
Rate Limiting
This endpoint respects the server’s configured rate limits.Request Body
The URL to redirect to. Must be a valid URL string with at least 1 character.
Custom vanity string for the URL. Maximum 100 characters. If not provided or
null, a random code will be used. Must be unique.Whether the URL should be active immediately after creation.
Request Headers
Maximum number of views before the URL is disabled. Must be at least 1.
Password to protect the URL. Users will need to enter this password before being redirected.
Custom domain to use in the returned URL. Can be comma-separated for random selection. Must be in the server’s allowed domains list.
When set to
true, returns the URL as plain text instead of JSON.Response
Returns the created URL object with the full shortened URL.Unique identifier for the shortened URL
Random code generated for the URL
Custom vanity string, if set
The destination URL
Number of views (will be 0 for new URLs)
Maximum number of views before the URL is disabled
Whether the URL is currently active
ISO 8601 timestamp of when the URL was created
ISO 8601 timestamp of when the URL was last updated
ID of the user who created this URL
The full shortened URL that can be shared
Example Request
Basic URL shortening
Custom vanity URL
With max views
Password protected
Custom domain
Plain text response
Disabled URL
Example Response
200 OK - JSON response
200 OK - With vanity
200 OK - Plain text response
400 Bad Request - Destination required
400 Bad Request - Vanity taken
403 Forbidden - Quota exceeded
URL Structure
The returned URL follows this pattern:- protocol:
httporhttpsbased on server configuration - domain: Your Zipline instance domain or custom domain from header
- route: Configured URL route (default:
/go) - vanity or code: Your custom vanity string or the auto-generated code
Notes
- Random codes are generated with the length configured in server settings (default: 6 characters)
- Vanity URLs are checked for uniqueness - you’ll get an error if the vanity is already taken
- Passwords are hashed before storage and never returned in responses
- If your quota is set, creating URLs that exceed your limit will fail
- The URL uses the vanity string if provided, otherwise falls back to the random code
- Custom domains must be in the server’s allowed domains list
- Multiple domains can be provided in
X-Zipline-Domainheader (comma-separated) for random selection