Skip to main content

Error Response Format

All API errors follow a consistent JSON structure:

HTTP Status Codes

Error Types

Authentication Errors

Common causes:
  • API key is malformed or incorrect
  • Key has been revoked
  • Key doesn’t have required scopes

Validation Errors

Common causes:
  • Missing required fields
  • Invalid field values or types
  • Array/object constraints violated

Rate Limit Errors

The response includes headers to help you handle rate limits:

Resource Errors

Handling Errors in SDKs

Our SDKs throw typed exceptions that you can catch and handle:

Retry Strategy

For transient errors (rate limits, 5xx errors), we recommend exponential backoff:
Python
Our SDKs include built-in retry logic with configurable settings. Check the SDK documentation for details.

Debugging

When contacting support, always include the request_id from the error response:
You can also find request IDs in the X-Request-Id response header for successful requests.