Skip to main content
Menu

Reference

Errors

Every failure returns the same envelope with a stable, switchable error code.

Error envelope

json
{
  "success": false,
  "error": {
    "code": "invalid_api_key",
    "message": "Invalid or revoked API key.",
    "details": null
  },
  "meta": { "request_id": "req_9f2c1a7b3e4d5c6f" }
}

Handle failures on error.code, not the HTTP status or message — messages may change, codes will not. Include the request_id when contacting support.

Codes

FieldTypeDescription
bad_request400Malformed request (e.g. bad path parameter).
validation_error422A query parameter failed validation; see error.details.
unauthorized401This endpoint requires an API key.
invalid_api_key401The presented key is missing, malformed, or revoked.
insufficient_scope403The key lacks a scope this endpoint requires.
not_found404No such resource, or it isn't publicly visible.
rate_limited429Too many requests; honor the Retry-After header.
feature_disabled503The API is paused for maintenance.
internal_error500An unexpected error on our end.