Error Response Format
All API errors follow a consistent JSON structure:HTTP Status Codes
Error Types
Authentication Errors
- API key is malformed or incorrect
- Key has been revoked
- Key doesn’t have required scopes
Validation Errors
- Missing required fields
- Invalid field values or types
- Array/object constraints violated
Rate Limit Errors
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
Debugging
When contacting support, always include therequest_id from the error response:
X-Request-Id response header for successful requests.
