Tesouro API uses rate limiting to protect Tesouro against spikes of incoming traffic that can put our systems at risk. These limits help us ensure that Tesouro remains stable and usable for everyone. By default, Tesouro API allows 30 requests per second per partner client ID for most API calls, which should be enough for most high-traffic applications. We evaluate the number of requests sent to an API from every API client and throttle them if they surpass the allowed amount. To avoid your systems becoming unavailable, we strongly recommend that you build custom logic handling rate limiting quotas provided by Tesouro. Thus, for every API request that does not exceed currently available rate limits, you receive a response with the following HTTP headers:Documentation Index
Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
Use this file to discover all available pages before exploring further.
| HTTP header | Description |
|---|---|
RateLimit-Limit | The number of requests allowed per second. Same as X-RateLimit-Limit-Second. |
RateLimit-Remaining | The number of available requests remaining in the current second. Same as X-RateLimit-Remaining-Second. |
RateLimit-Reset | The time remaining, in seconds, until the rate limit quota is reset. Usually 1 second. |
X-RateLimit-Limit-Second | The number of requests allowed per second. Same as RateLimit-Limit. |
X-RateLimit-Remaining-Second | The number of available requests remaining in the current second. Same as RateLimit-Remaining. |
429 Too Many Requests error indicating that you have sent too many requests within the quota period. If this happens, you will receive a Retry-After header with a value indicating how many seconds you need to wait before sending another request.
Example: