Errors and rate limits

Every Admin API error uses one JSON shape with a stable code. This page lists each code with its HTTP status, what it means, what to do, and whether to retry, plus the rate limits and Retry-After behaviour.

The error shape

Every response that isn't 2xx has this body:

{
  "code": "BAD_INPUT",
  "message": "name is required. Enter a name and try again.",
  "hint": "missing_field:name",
  "request_id": "req_…",
  "details": [{ "field": "name", "code": "required", "message": "name is required" }]
}
  • code is one of the codes below. Branch on it. Treat a code you don't know as INTERNAL.
  • hint is an optional, stable, finer reason, such as missing_field:name, api_key_expired or retryable. Branch on it when it's present.
  • message is for people. Its wording can change, so never parse it.
  • details lists field errors on BAD_INPUT. Send request_id when you contact support.

Error codes

CodeHTTPMeaningWhat to doRetry
BAD_INPUT 400 A field is missing or invalid, or a cursor is altered, expired or reused with other filters. Fix the request. details names each field; restart a list from the first page on a cursor error. after a fix
UNAUTHORIZED 401 No credential, or the key is unknown, revoked or expired (hint: api_key_expired). Send a valid key in X-Riptide-Api-Key or Authorization: Bearer. after a fix
FORBIDDEN 403 The key's roles or scopes don't allow the operation, or the path names another workspace. Use a key with the role the operation needs, on your own tenant_id. no
NOT_ENTITLED 403 Your role allows it, but the workspace's plan doesn't include the module (hint: entitlement_required). Ask your account admin to enable the module. no
NOT_FOUND 404 The resource doesn't exist in this workspace. Check the id and the tenant_id in the path. no
CONFLICT 409 A unique value is taken, the resource changed, or an Idempotency-Key was reused with a different body. Read the current state, then send a new request (or a new key). after a fix
FAILED_PRECONDITION 412 The request is valid but the system isn't in a state that allows it. Fix the precondition the message names, then retry. after a fix
LIMITING 429 or 503 A rate limit or a busy resource refused the request. Wait for Retry-After seconds, then retry with the same Idempotency-Key. yes
TIMEOUT 504 The operation didn't finish in time. Retry with the same Idempotency-Key; a completed change is replayed, not repeated. yes
INTERNAL 500 An unexpected server error. Treat any code you don't recognise the same way. Retry with backoff. If it persists, contact support with the request_id. yes
UNAVAILABLE 503 (502 for a refused event-store write) A dependency the operation needs is down or not configured. Retry with backoff when the response has hint: retryable; otherwise contact support. yes

Rate limits and Retry-After

The Admin API has no fixed per-key or per-workspace request quota. Requests are refused with LIMITING in these cases, always with a Retry-After header in seconds:

  • Sign-in endpoints (/v1/auth/* and OAuth): 60 requests a minute per client IP, and 5 a minute per email address for sign-up and magic-link requests. Answered with 429.
  • Busy resources: report runs, media validation and password checks have a fixed number of slots. When they're full the request is answered with 503 and nothing is queued.
  • Agent limits: an agent's key can carry action limits and caps your admins set. A call over a limit is refused; see MCP tools.

Retry after Retry-After. For other retryable errors, back off exponentially (for example 1, 2, 4 and 8 seconds) and stop after a few attempts. The TypeScript, Python and Go SDKs do this for you.

Retries and idempotency

Send an Idempotency-Key header on every create, update or archive, and reuse it when you retry the same change. A completed response is stored and replayed for the same key with the header Idempotent-Replayed: true, so a retry never makes the change twice. 5xx and 429 answers aren't stored, so the retry runs again. Reusing a key with a different body is a CONFLICT with hint: idempotency_key_reused. See Admin API for pagination and the API reference for each operation.