Skip to Content
API referenceErrors and limits

Errors and request limits

Successful requests use the endpoint-specific status code. Errors return JSON with an error code, readable message, and request ID:

{ "error": { "code": "invalid_request", "message": "Provide an http or https destination URL.", "request_id": "req_example" } }

The same request ID is sent in the X-Request-ID response header. Include it when asking support to investigate a failed request. Error messages can change; use the HTTP status and error.code for program logic.

StatusMeaningTypical action
400Invalid JSON, field, date, or limitCorrect the request before retrying.
401Missing, invalid, or revoked credentialsCheck the server-side key and workspace.
403The key lacks the required scopeCreate a key with the needed permission.
404Link is missing or outside the key’s workspaceCheck the code and workspace key.
409A custom short code is already in useChoose a different code.
500The service could not complete the requestRetry carefully; avoid assuming a create request failed before checking for the resulting link.

GET /v1/links accepts limit from 1 to 100 and currently returns has_more: false; cursor pagination is not implemented. Single-link requests are limited to 1 MiB and bulk requests to 2 MiB. Single and bulk creation accept idempotency keys. Published rate-limit headers are not currently available.