API rate limits depend on your plan:
- Basic — up to
50 RPM, but not less than 20 RPM;
- Standard — up to
750 RPM;
- Pro — up to
1 500 RPM.
RPM — requests per minute. The limit is 5 RPM per enabled agent for Basic and Standard plans, 10 RPM — for Pro plan. Sample calculations:
- 10 agents and Basic plan → the limit is 10 * 5 = 50 RPM;
- 100 agents and Standard plan → the limit is 100 * 5 = 500 RPM;
- 200 agents and Standard plan → 200 * 5 > 750, so the limit is 750 RPM;
- 100 agents and Pro plan → the limit is 100 * 10 = 1 000 RPM.
The limit is relevant for the entire Desk account, so requests can be made both from one agent and from different ones.
If the rate limit is exceeded, the API returns "429 Too Many Requests" response code.
Write requests (POST, PUT, DELETE) count as 2 requests toward the rate limit.
To make sure you stay within the rate limit, your script must check headers in the response:
- rate_limit_per_minute — maximum number of requests per minute;
- api_calls_left — number of requests remaining in the current rate limit interval;
- retry_after — numbers of seconds to wait until the rate limit is refreshed.