API reference
Errors and limits
One error format everywhere, with safe retries built in.
Error format
{
"error": {
"code": "validation_failed",
"message": "One or more fields are invalid.",
"details": {
"web_url": [
"The web url field is required."
]
},
"request_id": "req_8f2k1m9x0a7c3e5b1d4f"
}
}Error codes
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_request | The request is malformed. |
| 401 | unauthenticated | No token was sent. |
| 401 | invalid_token | The token is wrong, expired or revoked. |
| 403 | insufficient_scope | The token does not have the required scope. |
| 403 | ip_not_allowed | The request came from an address outside the token’s list. |
| 403 | organization_suspended | The organization is suspended. |
| 403 | subscription_required | This action needs an active plan. |
| 403 | plan_upgrade_required | This feature is not included in your plan. |
| 404 | not_found | The resource does not exist or this token cannot reach it. |
| 409 | request_in_progress | A request with this Idempotency-Key is still running. |
| 422 | validation_failed | See details for the fields to fix. |
| 422 | immutable_field | This field cannot change after creation. |
| 422 | idempotency_conflict | This Idempotency-Key was used with a different request. |
| 429 | rate_limited | Too many requests. Retry after the time in details. |
| 500 | internal_error | Something failed on our side. Quote the request_id. |
| 503 | analytics_unavailable | Reporting is temporarily unavailable. Your links are not affected. |
| 503 | temporarily_unavailable | Please retry shortly. |
Rate limits
Each token can make 600 requests per minute. Every response says how many remain.
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 412
X-RateLimit-Reset: 1762600800Pagination
List endpoints return next_cursor. Pass it as cursor to get the next page until has_more is false.
GET /links?limit=100&cursor=eyJpZCI6NDgyMX0Safe retries
Send a unique Idempotency-Key when creating links. For 24 hours, the same key returns the original response with Idempotent-Replayed: true.
Idempotency-Key: 3f2c8a10-6d4b-4f8e-a1c2-7b9e0d5f6a31Tracing requests
Every response has an X-Request-Id header. Include it when contacting support.
X-Request-Id: req_8f2k1m9x0a7c3e5b1d4f