Response envelope
All errors return the same top-level shape.type, code, message, status, and doc_url are always present.
details array. Server errors add a request_id you can share with support.
Error types
| Type | When |
|---|---|
invalid_request_error | The request was malformed or referenced a resource that doesn’t exist. Fix the request before retrying. |
authentication_error | The Authorization header is missing, malformed, or the token is not recognised. |
api_error | An unexpected server-side failure. Retry with exponential back-off. If it persists, contact support with the request_id. |
Error codes
| Code | Status | Type | Description |
|---|---|---|---|
VALIDATION_ERROR | 400 | invalid_request_error | Body, query, or path params failed schema validation. |
TOKEN_INVALID | 401 | authentication_error | Token missing, malformed, or not recognised. |
SCHEMA_NOT_FOUND | 404 | invalid_request_error | Schema id not found or belongs to a different user. |
CLAIM_NOT_FOUND | 404 | invalid_request_error | Claim id not found or belongs to a different user. |
CUSTOMER_NOT_FOUND | 404 | invalid_request_error | Customer id not found or belongs to a different user. |
CUSTOMER_EXTERNAL_ID_CONFLICT | 409 | invalid_request_error | external_id already exists for this account. |
CLAIM_NOT_OPEN | 422 | invalid_request_error | Event submitted to a claim whose status is not OPEN. |
INTERNAL_ERROR | 500 | api_error | Unexpected server error. |