429 Too Many Requests HTTP response. When this happens, wait before retrying the request.
Rate limiting details in GraphQL responses
Rate limiting details are included in theextensions field of a GraphQL response:
| Field | Description |
|---|---|
rateLimit.requestRate | The current rate of requests |
rateLimit.remaining | The remaining number of requests before reset |
rateLimit.retryAfterMs | How long to wait (in ms) before retrying a request |
rateLimit.resetAfterMs | How long (in ms) until the rate limit resets |
Example response
Handling rate limits
- Check the
extensionsfield: Examine theextensionsfield for rate limiting information. Ifremainingis zero, you have exceeded the rate limit and need to back off. - Implement a backoff strategy: If rate limits are exceeded, wait for the
resetAfterMsduration before retrying the request. 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.