Rate-limiting
Each organisation has the following limits in place when utilising the Sessions API:
- No more than 20 requests per second
- No more than 100 concurrent requests
- No more than 10,000 requests per month
If any of these limits are reached, the API will return an error like so:
429 Too Many Requests
There are lots of ways to ensure that the above limits aren’t reached, but an easy way to get started is to wait for a short amount of time and then retry the request.
A more advanced option is to automatically retry the operation with a backoff. Here is an example of how this can be done in Python.
If you find you are reaching this limit a lot, then please reach out to your account manager and let them know.