Error response format
All errors follow a consistent JSON structure:HTTP status codes
| Status | Meaning | Common cause |
|---|---|---|
200 | OK | Request succeeded |
400 | Bad Request | Missing or malformed request body / parameter |
401 | Unauthorized | Missing, invalid, or revoked API key |
402 | Payment Required | No credits remaining on the account |
422 | Unprocessable Entity | Input failed validation (e.g. invalid email format) |
429 | Too Many Requests | Rate limit exceeded — see Rate Limits |
500 | Internal Server Error | Unexpected server-side error |
503 | Service Unavailable | Upstream provider temporarily unavailable |
Common errors
401 — Invalid API key
401 — Invalid API key
Authorization: Bearer header.400 — Missing required field
400 — Missing required field
402 — Insufficient credits
402 — Insufficient credits
422 — Validation error
422 — Validation error
message field for specifics.503 — Upstream unavailable
503 — Upstream unavailable