Error catalog

Every Developer Platform error answers with { "error": { "code", "message", "request_id" } }. With the error taxonomy on, it also carries type, retryable, retry_after_seconds, details and docs_url, a link to the row below. Decide by code when you meet a type you don't know. Quote request_id (or the X-Request-Id header) when you contact support.

typecodeHTTPRetryableMeaningWhat to do
auth_invalidunauthorized401nobad key, token or signature; also a stale signature timestampCheck the key or client credentials. Don't retry with the same credentials.
auth_expiredunauthorized401yes (after refresh)token expired; refresh and retry onceFetch a new token at POST /v1/oauth/token, then retry once. The SDKs do this for you.
permission_deniedforbidden403noscope missing, or outside the write matrix (§15.2)Add the scope to the key or client, or use a key of the right organization type.
not_foundnot_found404noalso used for other tenants' ids (§15.1)Check the id. An id you can't see is answered the same way as one that doesn't exist.
validation_failedinvalid_request400noa field fails a rule; see detailsFix each field named in details, then send the request again.
schema_invalidinvalid_request400nomalformed JSON, wrong types, body too large (413 for size)Send valid UTF-8 JSON under 100 KB.
idempotency_conflictconflict409nosame key, different bodyUse a new idempotency key for a different request. Reuse a key only to retry the same request.
stale_versionconflict409nosource_version ≤ applied; stored as historyNothing to fix: a newer version is already applied. Send versions in order.
invalid_transitionconflict409noe.g. CAP status orderRead the record's current state, then send the next allowed change.
rate_limitedrate_limited429yeshonour Retry-AfterWait retry_after_seconds, then retry. If it keeps happening, poll less often.
backpressurerate_limited429yesthe system is shedding load for your connection (§14.2)Wait retry_after_seconds, then retry with exponential backoff and jitter.
upstream_unavailableinternal_error503yesa dependency is down (the AI reader is not one: it goes PENDING instead)Retry with exponential backoff (1 s to 60 s).
internal_errorinternal_error500yes (with backoff)report request_idRetry with backoff. If it persists, quote request_id to support.
lineage_redactedn/a200n/anot an error: redactions[] in the body explains the gapsNothing: read redactions[].
conflictconflict409noa 409 whose route names no finer class (e.g. a source_id already recorded with other data)Read the message: send the record with its original data, or under a new source_id.