loading

Request/Response Flow

Typical Request Flow

  1. Include your API key in the Authorization header

  2. Set appropriate Content-Type header for POST/PUT requests

  3. Send request to the appropriate endpoint

  4. Check rate limit headers in the response

  5. Handle the response based on HTTP status code

  6. Process response data or error message accordingly

Response Processing

  1. Check HTTP status code first

  2. For success (200): Process the returned data

  3. For client errors (4xx): Handle the specific error condition

  4. For rate limiting (429): Wait and retry based on Retry-After header

  5. For server errors (5xx): Implement retry logic with backoff