Errors & limits
Stable error.code values. Shape is consistent across routes.
{
"ok": false,
"error": {
"code": "plan_upgrade_required",
"message": "Live network needs Growth+"
}
}
HTTP map
| Status | Codes | What to do |
|---|---|---|
| 401 | unauthorized · invalid_api_key | Fix key / header |
| 402 | plan_upgrade_required | Upgrade for live network |
| 403 | publishable_key_forbidden · origin_not_allowed · email_unverified | Use sk_ on server · allow origin · confirm signup |
| 404 | not_found | Bad session / account / profile |
| 422 | validation_error | Fix JSON body |
| 429 | rate_limited · credits exhausted | Backoff · raise plan · wait month window |
| 503 | try_later | Transient (e.g. email intel) — retry |
Limits
- Monthly credits — plan quota on deep assesses / email lookups
- Idempotency — same
Idempotency-Keyon assess returns cached result (~24h) - Origins — max 20 on publishable collect
- Public demos — IP rate limits on
/v1/public/*(marketing/lab)
Machine schema
GET /v1/schema includes the error catalog under schema.errors.