Errors
Every error has the same shape, with a stable code to branch on, a plain message, and a fix:
{ "error": { "code": "scope_not_granted", "message": "this key does not have the decide scope", "fix": "create a key with the decide scope" }}Branch on code. Messages may be reworded.
| Status | code |
Meaning |
|---|---|---|
| 400 | invalid_body |
Not valid JSON, or too large (32 KB for decisions, 512 KB for outcomes). |
| 400 | invalid_event_type |
event_type is missing or not one of the integration points. |
| 400 | missing_account_id |
account_id is required. |
| 400 | unknown_element_type |
An element type other than account_id, email, or phone. |
| 400 | element_not_accepted |
SSN, date of birth, name, or address: not accepted yet. |
| 400 | card_number_refused |
The request contains what looks like a card number. Never send one. |
| 400 | ssn_refused |
account_id is written like a Social Security number (123-45-6789). Send your own account ID. |
| 400 | invalid_amount |
amount is negative, not a number, or has more decimal places than its currency allows. |
| 400 | invalid_currency |
currency is not an ISO 4217 code. |
| 400 | invalid_value_type |
value_type is not one of the listed values. |
| 400 | batch_size |
Send between 1 and 100 outcomes. |
| 401 | invalid_api_key |
The key is missing, unknown, revoked, or expired. |
| 403 | invalid_api_key |
The key’s IP allowlist does not include the caller. |
| 403 | scope_not_granted |
The key lacks the scope this call needs. |
| 401 | invalid_site_key |
Browser tag: the site key is missing, unknown, revoked, or expired. |
| 403 | origin_not_allowed |
Browser tag: the page’s domain is not on the site key. |
| 429 | rate_limited |
The key is calling faster than its limit (below). Wait for Retry-After, then retry. |
| 503 | unavailable |
We could not store something. Retry. |
Per-outcome errors in an outcomes batch use the same shape inside each result: invalid_outcome, invalid_outcome_type, invalid_role, invalid_bot_truth, invalid_source, invalid_occurred_at, missing_subject, invalid_account_id, invalid_id, missing_outcome_id, invalid_currency, invalid_amount, ssn_refused, card_number_refused, decision_not_found, and outcome_not_found.
Warnings are not errors
Section titled “Warnings are not errors”A decision can succeed with warnings, for example no_request_id (the tag did not run) or geo_unavailable. The decision is still valid; it simply knew less. Log warnings and watch their rate.
Rate limits
Section titled “Rate limits”Each key has its own limit, so one busy integration never slows another. Past it, a call gets 429 rate_limited with a Retry-After header in seconds.
| Call | Limit per key |
|---|---|
POST /v1/decision |
50 a second, bursts of 100 |
POST /v1/outcomes |
10 calls a second, bursts of 20 (each call holds up to 100 outcomes) |
Browser tag (POST /v1/collect) |
500 a second for the site key, and 10 a second (bursts of 30) from one address |
| MCP server | 5 calls a second, bursts of 20, and 4 running at once |
These are far above what a beta integration sends. If you need more, tell us and we raise the limit for your key.
Retries
Section titled “Retries”- Decisions: retry on a network error, a timeout, or a 5xx, once, quickly. Each call is a new decision with its own
decision_id. - Outcomes: retry freely with the same
outcome_id; a repeat replaces the earlier report. - Rate limited (429): wait the number of seconds in
Retry-After, then retry. - Never retry a 400, 401, or 403 unchanged: the
fixsays what to change.