429 Too Many Requests HTTP response. When this happens, wait before retrying the request.
Rate limit response headers
For every API request within the allowed rate limit, Tesouro returns the following HTTP headers:
If you exceed the rate limit, the response will include a
Retry-After header indicating how many seconds to wait before sending another request:
Handling rate limits
- Monitor rate limit headers: Check
RateLimit-Remainingon each response to track your remaining quota. - Implement a backoff strategy: If you receive a
429response, wait for the duration specified in theRetry-Afterheader before retrying. Consider using exponential backoff for retries.
If the current rate limiting levels are not satisfactory for your integration, please contact your Account Manager at Tesouro to request an adjustment.