Errors
The error envelope and every error type.
Every non-2xx response, on both the API key and dashboard bases, uses the same envelope:
{
"error": {
"type": "rate_limited",
"message": "10 requests per second per key",
"request_id": "req_8fJ1h9mQx2Av7Z04"
}
}param is present only for a field-specific invalid_request. Every response, success or error, also carries a Request-Id header matching error.request_id — include it when you ask for help.
| Type | Status | When |
|---|---|---|
| invalid_request | 400 | Bad JSON, a bad field (param names it), or a bad cursor |
| unauthenticated | 401 | Missing, invalid, revoked or expired key or token |
| insufficient_scope | 403 | The key lacks the route's required scope |
| ip_not_allowed | 403 | The key has an IP allowlist and the caller isn't on it |
| account_suspended | 403 | The org is suspended |
| forbidden | 403 | Role too low, or a test-only route called with a live key |
| email_unverified | 403 | Dashboard: signed in with an unverified e-mail |
| totp_required | 403 | Dashboard: a 2-step code is missing (or not enrolled) |
| totp_invalid | 403 | Dashboard: the 2-step code was wrong or already used |
| limit_reached | 403 | A count cap: inboxes, keys, webhooks, domains or seats |
| plan_limit | 403 | The feature isn't on your plan (e.g. IP allowlist, a custom domain) |
| not_found | 404 | Unknown id, another org's id, or the wrong mode's id |
| conflict | 409 | An idempotent request is still in progress, or a duplicate |
| use_portal | 409 | Checkout attempted while already subscribed |
| billing_unavailable | 409 | Billing isn't configured yet |
| payload_too_large | 413 | Request body over 64 KB |
| idempotency_mismatch | 422 | Same Idempotency-Key, different request |
| recipient_not_allowed | 422 | Send: the address isn't an active inbox in your own org/mode |
| rate_limited | 429 | Per-second token bucket is empty — see Retry-After |
| quota_exceeded | 429 | Monthly request cap reached — see Retry-After |
| server_error | 500 | Unexpected error on our side |
| unavailable | 503 | The database is unreachable or not configured |