Rate limits
Limits protect account capacity and report infrastructure. When an endpoint returns429, back off and retry only after the response’s retry guidance. Do not fan out retries from several workers at once.
For bursty workloads, queue requests per API key and use bounded concurrency. Batch endpoints are preferable to an unbounded client-side loop when the reference offers one.
Idempotency
For endpoints that create paid work, send anIdempotency-Key generated by your system.
Retry policy
- Retry network failures only when an idempotency key is present for a billable operation.
- Retry
429and transient5xxresponses with exponential backoff and jitter. - Do not retry
400,401,402, or403until the underlying input, key, credits, or tier has changed. - Poll asynchronous jobs at a measured interval and stop at a terminal
succeededorfailedstate.