API documentationAPI reference

Rate limits

If you send requests too quickly, the API returns 429. Slow down and use Retry-After, when present, to decide how many seconds to wait.

Successful responses can include rate-limit headers.

Use the exact headers documented for the operation.

Handle a 429 response

  1. Read the response and its request ID.
  2. Wait for the number of seconds in Retry-After, when present.
  3. Stagger concurrent requests so they do not all retry at the same instant.
  4. If 429 responses continue, reduce concurrency.

Do not retry a write automatically after a timeout or ambiguous server error. When a read operation exists, retrieve the resource first to check whether the change succeeded.

A 502, 503, or 504 is not a rate-limit response. Handle it separately from 429.

To inspect headers on a read-only request:

curl -i https://api.torre.ai/v1/account \
  -H "Authorization: Bearer $TORRE_API_KEY"

Do not run a loop to deliberately trigger the limit. Reuse data you already fetched and reduce parallel requests when throttled.