When you reach the limit
The API answers429 Too Many Requests with detail set to rate_limited and a Retry-After: 60 header:
Backing off
- Wait at least the number of seconds in
Retry-Afterbefore sending more requests with the same key. - For
503responses, and whenRetry-Afteris absent, use exponential backoff with jitter: for example wait 1, 2, 4 and 8 seconds, each multiplied by a random factor between 0.5 and 1.5, then give up. - Spread scheduled jobs over the minute instead of starting them together.
- Page through lists with the largest
limitthe operation allows instead of sending many small requests. - To poll the conversation list, send the
ETagback inIf-None-Matchand usesince. See Pagination and search.
Other limits
Limits per network address may also apply in front of the API. They are not published; handle429 the same way.