Rate limits in Truto API
Truto limits how fast you can call it, and passes on the provider's limits when an integration knows how to read them.
Truto's limits
Truto enforces these limits in front of requests. Each returns a 429 with a Retry-After header.
| Scope | Limit | Retry-After |
Triggered by |
|---|---|---|---|
| Per API token | 100 requests / 1s and 500 requests / 10s | 1 or 10 |
The API token in Authorization |
| Per dashboard session | 500 requests / 10s | 10 |
The session cookie, for calls made from the Truto dashboard |
| Per integrated account | 50 requests / 10s | 10 |
The integrated_account_id query parameter (Unified, Proxy and Custom APIs) |
| Per source IP | 2000 requests / 10s | 10 |
Every request from one address, authenticated or not |
POST /link-token and incoming provider webhooks are exempt from the per-token and per-session limits.
{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Too many requests. You can make 50 requests every 10 seconds per integrated account."
}Provider limits
On Unified, Proxy and Custom API calls, Truto returns the provider's rate-limit state in these headers, when the integration defines how to read them:
ratelimit-limit— Indicates the maximum number of requests allowed within the current rate limit window. It represents the total quota allocated by the API you are interacting with.ratelimit-remaining— Reflects the number of requests remaining within the current rate limit window. This header updates after each API call, helping you track your remaining quota in real-time.ratelimit-reset— Reflects the number of seconds when the current rate limit window will reset. After this time, your request quota will be refreshed, and theratelimit-remainingwill return to its maximum value.
Example
Here's how these headers come back when the Unified API is called for the HubSpot integration:
HTTP/2 200
ratelimit-limit: 110;w=10
ratelimit-remaining: 109HubSpot reports its 10-second window but no reset time, so ratelimit-reset is absent.
ratelimit-limit: This indicates that the maximum number of requests allowed within the current rate limit window is 110, with a rate limit window duration of 10 seconds (w=10).ratelimit-remaining: This shows that 109 requests are still available within the current rate limit window.
Note: Rate limit headers are included in the response only when the integration is configured to read the provider's rate-limit headers. For integrations without that configuration, these headers are absent even if the provider enforces rate limits. Additionally, the rate limit window (w=10) is specific to certain APIs and may not be available depending on the rate limit configurations of the underlying API provider.
When the provider rate-limits a call, Truto answers 429 with truto_is_remote_error: true. Retry-After is set when the provider sent one or the integration defines it. When it's missing, back off exponentially. Some integrations recognize a provider's rate-limit response that isn't a 429, and Truto still answers 429. On Unified API calls, the body also carries truto_error_insight.rate_limit_error.
The header names and the ;w= parameter follow draft-polli-ratelimit-headers-02.
Who sent the 429?
| Source | How to tell | What to do |
|---|---|---|
| The provider | truto_is_remote_error: true and the provider's error in raw_response; on Unified API calls, truto_error_insight.rate_limit_error |
Wait for Retry-After when it's there, otherwise back off exponentially. |
| Truto's limits | No truto_is_remote_error, a message such as Too many requests. You can make 50 requests every 10 seconds per integrated account., and Retry-After of 1 or 10 |
Wait for Retry-After, then slow down to stay within Truto's limits. |
| Truto overloaded | No truto_is_remote_error, a message saying something is overloaded, and Retry-After between 30 and 90 seconds |
Wait for Retry-After, then retry. It isn't a limit on your usage. |