Errors
Error envelope and common error names.
Envelope
{
"statusCode": 422,
"name": "validation_error",
"message": "Human-readable explanation",
"request_id": "…"
}Also returned as header X-Request-Id.
HTTP status usage
| Status | Typical meaning |
|---|---|
400 / 422 | Validation or invalid parameters |
401 | Missing/invalid credentials |
403 | Authenticated but not allowed |
404 | Unknown id |
429 | Rate limited (Retry-After set) |
500 | Unexpected server error |
Common name values
| Name | Meaning |
|---|---|
missing_api_key | No Bearer token |
invalid_api_key | Token unknown or revoked |
restricted_api_key | Sending key used on a manage route |
invalid_session / not_signed_in | Portal session problems |
invalid_origin | Cookie call from disallowed origin |
validation_error | General validation failure |
missing_required_field | Required JSON field absent |
invalid_parameter | Bad field value |
invalid_from_address | From domain not allowed |
invalid_scheduled_date | Bad scheduled_at |
invalid_attachment | Attachment rejected |
invalid_json | Body not JSON |
not_found | Resource missing |
domain_already_exists | Domain taken in workspace |
domain_verification_unavailable | Ownership provider unavailable |
workspace_limit_reached | Too many workspaces for plan |
sending_restricted | Sends blocked for the workspace |
rate_limit_exceeded | Too many HTTP requests |
forbidden | Permission denied |
method_not_allowed | Wrong HTTP method |
internal_server_error | Unexpected failure |
Always prefer name + message over guessing from status alone.