Rate limits
API key requests count against two limits set by your plan, shared by all of your organization’s keys:
- Per minute, to smooth out bursts.
- Per month, your plan’s allowance.
The Developers page in the dashboard shows both for your plan.
Headers
Section titled “Headers”When a limit applies, responses tell you where you stand for the current minute:
| Header | Meaning |
|---|---|
X-RateLimit-Limit |
Requests allowed per minute |
X-RateLimit-Remaining |
Requests left this minute |
X-RateLimit-Reset |
When the minute resets (Unix seconds) |
Past either limit, requests answer 429 RATE_LIMITED with a Retry-After header: the number of seconds to wait.
Staying within limits
Section titled “Staying within limits”- Use webhooks instead of polling. Rather than asking for new tickets every minute, let Supportaka tell you. See webhooks.
- Ask for 100 at a time when you page through lists (
limit=100). - Cache what rarely changes, such as products and departments.
- Back off on
429. WaitRetry-Afterseconds, then retry. Don’t retry in a tight loop. - Spread big jobs out, such as a first import of all your customers, instead of sending them all at once.