Requests are limited per workspace per minute. The limit depends on the workspace's plan; larger plans allow more.
When you hit it
The API answers 429 with the code rate_limited and a Retry-After header, the number of seconds to wait:
HTTP/1.1 429 Too Many Requests
Retry-After: 12
Content-Type: application/json
{"error":{"code":"rate_limited","message":"Too many requests.","request_id":"..."}}
Wait at least that long before you send the next request.
Staying under it
- Page through lists with a large
limitinstead of many small pages, and use the exports for full copies. - Cache what changes rarely, such as Groups, tags and policy.
- Use webhooks to hear about changes instead of polling.
- Spread scheduled jobs over the minute rather than starting them all at once.
Exports
The workspace export (POST /workspaces/{workspaceId}/export) has its own hourly limit, and answers 429 with Retry-After in the same way.