Errors
Version 2026-10-15 · effective Oct 15, 2026
The envelope
Every error has the same shape:
{
"code": "rate_limited",
"message": "Too many requests at once. Wait a moment and try again.",
"details": { "field": ["message"] },
"requestId": "req_01HX..."
}`details` appears only for validation errors. Quote `requestId` when you contact support. Branch on `code`; `message` is for people and may change.
Codes
| Status | `code` | Meaning | Retry? |
|---|---|---|---|
| 400 / 422 | `validation_error` | A field is missing or malformed; `details` names it | No: fix the request |
| 401 | `unauthorized` | The key is missing, unknown or revoked | No |
| 402 | `plan_upgrade_required` | The feature is not in your plan | No |
| 402 | `insufficient_balance` | The usage balance cannot cover the call beyond your included data. On an Enterprise account with a credit limit, the call would also take the balance past that limit | No: top up or wait, or ask us to raise your credit limit |
| 402 | `overage_threshold_reached` | Your overage threshold for the billing period is reached | No: raise it or wait for the next period |
| 402 | `cycle_limit_reached` | A limit you set for the billing period would be passed | No: raise or remove it, or wait |
| 403 | `forbidden` | The key may not do this | No |
| 403 | `insufficient_scope` | The key lacks the `write` scope for this call | No |
| 403 | `ip_not_allowed` | The caller's address is not on the key's allow-list | No |
| 404 | `not_found` | The resource does not exist, or is not yours | No |
| 409 | `conflict` | The request conflicts with the current state | No: read the state, then decide |
| 409 | `key_inactive` | The key is expired or revoked | No |
| 409 | `balance_limit_reached` | A top-up would take the balance above the maximum | No |
| 409 | `payment_method_required` | An action needs a saved card | No: add a card |
| 409 | `wallet_frozen` | The account is closed and its balance is frozen | No |
| 413 | `payload_too_large` | The request body is above your plan's limit | No: send less |
| 422 | `prohibited_data` | The text appears to contain a payment card number, a government identification number or a health-record format. It was refused before processing, and nothing was held or billed | No: remove that content |
| 429 | `rate_limited` | Too many requests per second for your plan | Yes: back off, then retry |
| 5xx | `internal_error` | Something failed on our side | Yes: retry with back-off |
Retrying
Retry only `rate_limited` and 5xx errors, and any network failure. Use exponential back-off with jitter and stop after a few attempts. Do not retry the other codes: they will fail the same way until you change the request, the account or the key.
Prohibited data
The `prohibited_data` check is a safeguard, not a guarantee. It recognises payment card numbers (issuer ranges and the Luhn check), US and Brazilian identification numbers in known formats, and the formats of health records (labelled medical identifiers, coding systems with record headings, prescription patterns). It does not recognise health information written as ordinary prose. Your use is governed by the Acceptable Use Policy regardless of what the check catches.
