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

HTTPCodeMeaning
400invalid_requestThe request is malformed.
401unauthenticatedNo token was sent.
401invalid_tokenThe token is wrong, expired or revoked.
403insufficient_scopeThe token does not have the required scope.
403ip_not_allowedThe request came from an address outside the token’s list.
403organization_suspendedThe organization is suspended.
403subscription_requiredThis action needs an active plan.
403plan_upgrade_requiredThis feature is not included in your plan.
404not_foundThe resource does not exist or this token cannot reach it.
409request_in_progressA request with this Idempotency-Key is still running.
422validation_failedSee details for the fields to fix.
422immutable_fieldThis field cannot change after creation.
422idempotency_conflictThis Idempotency-Key was used with a different request.
429rate_limitedToo many requests. Retry after the time in details.
500internal_errorSomething failed on our side. Quote the request_id.
503analytics_unavailableReporting is temporarily unavailable. Your links are not affected.
503temporarily_unavailablePlease 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: 1762600800

Pagination

List endpoints return next_cursor. Pass it as cursor to get the next page until has_more is false.

GET /links?limit=100&cursor=eyJpZCI6NDgyMX0

Safe 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-7b9e0d5f6a31

Tracing requests

Every response has an X-Request-Id header. Include it when contacting support.

X-Request-Id: req_8f2k1m9x0a7c3e5b1d4f