To keep the platform fast and reliable for everyone, the SIP Caller REST API limits the number of requests that each API key can make.
Each API key can make up to 20 requests per second, on average.
The limit applies to each API key separately. All requests count towards the limit, including the ones that fail.
If your integration needs a higher limit, contact us and explain your use case: what your integration does, how many requests it sends, and how they're distributed over time. We'll review it and help you find the best solution, which can include increasing the limit for your account.
When the limit is exceeded, the API returns a 429 Too Many Requests error, with a Retry-After header indicating the number of seconds to wait before sending more requests:
HTTP/1.1 429 Too Many Requests
Retry-After: 5
{ "type": "https://tools.ietf.org/html/rfc6585#section-4", "title": "One or more errors occurred.", "status": 429, "detail": "Too many requests. Retry after 5 seconds.", "instance": "/v1/accounts/ACCOUNT_ID/campaigns", "traceId": "0HN6QKQ1B2F3G:00000004" }
Retry-After header. When you get a 429 error, wait at least the indicated number of seconds before retrying.