Get started
Errors
Copy page
Every error response shares one JSON envelope, whatever the status code.
Envelope
Every error is {"error": {"code", "message", "request_id", "param"?}}. Use request_id when contacting support.
Common statuses
401: missing or invalid credential. 402: insufficient balance. 403: key not permitted for this operation. 422: request validation failed (see param). 429: rate limited. 502/503: temporarily unavailable, safe to retry with backoff.
Error fields
error.codestring
Required
Machine-readable error code.
error.messagestring
Required
Human-readable message, safe to show to a developer.
error.request_idstring
Required
Correlate with a support ticket.
error.paramstring
Optional
The offending field, when applicable.
Response 422application/json
Validation error: param names the offending field.
{
"error": {
"code": "invalid_request",
"message": "Request validation failed.",
"request_id": "req_...",
"param": "text"
}
}