Skip to main content

Error response

All errors return a flat JSON object with every field always present:
string
required
Broad error classification. One of: api_error, authentication_error, idempotency_error, invalid_request_error, rate_limit_error.
string
required
Machine-readable error code for programmatic handling. Use this to branch on specific error conditions. Never parse the message field.
string
required
Human-readable description of the error. Not a stable contract. Do not parse or branch on message content.
string | null
required
The request parameter that caused the error, or null if not parameter-specific.
string
required
Link to documentation explaining the error.
string
required
Unique request identifier for tracing and support. Also returned as a Correlation-Id response header on all responses.

Categories

Error codes

Structural codes

Domain codes

These codes refine invalid_request_error for specific resources. They allow finer-grained handling than the generic parameter_invalid or validation_error.

Examples