Skip to Content

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

StatusTypical meaning
400 / 422Validation or invalid parameters
401Missing/invalid credentials
403Authenticated but not allowed
404Unknown id
429Rate limited (Retry-After set)
500Unexpected server error

Common name values

NameMeaning
missing_api_keyNo Bearer token
invalid_api_keyToken unknown or revoked
restricted_api_keySending key used on a manage route
invalid_session / not_signed_inPortal session problems
invalid_originCookie call from disallowed origin
validation_errorGeneral validation failure
missing_required_fieldRequired JSON field absent
invalid_parameterBad field value
invalid_from_addressFrom domain not allowed
invalid_scheduled_dateBad scheduled_at
invalid_attachmentAttachment rejected
invalid_jsonBody not JSON
not_foundResource missing
domain_already_existsDomain taken in workspace
domain_verification_unavailableOwnership provider unavailable
workspace_limit_reachedToo many workspaces for plan
sending_restrictedSends blocked for the workspace
rate_limit_exceededToo many HTTP requests
forbiddenPermission denied
method_not_allowedWrong HTTP method
internal_server_errorUnexpected failure

Always prefer name + message over guessing from status alone.

On this page