API documentation

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`MeaningRetry?
400 / 422`validation_error`A field is missing or malformed; `details` names itNo: fix the request
401`unauthorized`The key is missing, unknown or revokedNo
402`plan_upgrade_required`The feature is not in your planNo
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 limitNo: top up or wait, or ask us to raise your credit limit
402`overage_threshold_reached`Your overage threshold for the billing period is reachedNo: raise it or wait for the next period
402`cycle_limit_reached`A limit you set for the billing period would be passedNo: raise or remove it, or wait
403`forbidden`The key may not do thisNo
403`insufficient_scope`The key lacks the `write` scope for this callNo
403`ip_not_allowed`The caller's address is not on the key's allow-listNo
404`not_found`The resource does not exist, or is not yoursNo
409`conflict`The request conflicts with the current stateNo: read the state, then decide
409`key_inactive`The key is expired or revokedNo
409`balance_limit_reached`A top-up would take the balance above the maximumNo
409`payment_method_required`An action needs a saved cardNo: add a card
409`wallet_frozen`The account is closed and its balance is frozenNo
413`payload_too_large`The request body is above your plan's limitNo: 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 billedNo: remove that content
429`rate_limited`Too many requests per second for your planYes: back off, then retry
5xx`internal_error`Something failed on our sideYes: 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.