Skip to main content

Error Response Format

When a request fails, the response body contains a structured error object:
Error Response

HTTP status codes

Common mistakes

Passing numbers instead of strings in params
Wrong
Correct
Missing Authorization header
Wrong
Correct
Using an invalid agent_id
Wrong
Correct

Retry strategy

For 429, 500, and 503 responses, use exponential backoff:
Python