API Reference
Rate limits
Request limits, the 429 response and how to retry.
Each project key, CLI token and client IP address can make 120 requests per minute. Past that, requests return:
JSON
{ "error": { "code": "rate_limited", "message": "Too many requests. Retry later.", "request_id": "…" } }with HTTP 429. A rate-limited authorization check is not a decision: don't run the action.
Retrying
- Retry
429and5xxresponses with exponential backoff and jitter, a few times at most. - The TypeScript SDK and the Python client do this for you (2 retries by default), then throw.
- Don't retry
4xxvalidation or authentication errors; fix the request. - If a check still fails, keep the action stopped and let your own queue retry later. See Queues and background jobs.
Staying under the limit
- Check once per action, right before it runs. Don't poll
authorize. - When waiting for an approval, poll
GET /approvals/{id}every few seconds at most, or use webhooks instead of polling.
Something wrong or unclear? Report an issue with this page.