Rate limits
The API enforces rate limits to keep the service responsive for everyone. Three limits apply to each request. If a request goes over any one of them, the API refuses it with 429 Too Many Requests.
The three limits
| Limit | Applies to | Default |
|---|---|---|
| Per IP | All requests from one IP address | 120 / minute |
| Per team | All endpoints of one team, together | 120 / minute |
| Per endpoint | One endpoint, for one team | 30 / minute |
Per IP
The API counts every request from an IP address, including requests with a bad or missing API key. For an IPv6 address, the API counts all addresses in the same /64 range together.
Per team
All endpoints of a team share one count. All keys and users that call the same team share it too. For an endpoint with no team, such as GET /users/me, each user has their own count.
A refused request also counts. If you retry before the wait time ends, the retry uses part of your limit.
Per endpoint
Each endpoint also has its own limit for each team (or for each user, when the endpoint has no team). Most endpoints allow 30 requests per minute. Some endpoints have a lower limit, as the next sections show.
Shared IP addresses
Calls from Zapier, Make, n8n cloud or Google Apps Script can use an IP address that other customers of that platform also use. These customers share the limit of 120 requests a minute for that IP address. A 429 that your own usage does not explain can come from this.
Lower limits for some endpoints
An endpoint that is expensive, or that changes data, has a lower per-endpoint limit. The Rate limit line at the top of each endpoint page shows the limit of that endpoint.
| Endpoint | Limit |
|---|---|
POST /teams/{teamId}/data/run-query | 10 / minute and 100 / hour |
DELETE /teams/{teamId}/connections/{connectionId} | 5 / minute and 30 / hour |
| Enable account and disable account | 30 / minute and 300 / hour |
| Add and delete client account | 30 / minute and 300 / hour |
| Create, update and delete client contact | 20 / minute and 200 / hour |
| Upload and delete team logo | 5 / minute and 20 / hour |
| Update team name, brand color and time zone | 10 / minute and 60 / hour |
| Update member role, update member seat and remove member | 10 / minute and 60 / hour |
PUT /users/me/avatar and DELETE /users/me/avatar | 5 / minute and 20 / hour |
| Update your name and your preferences | 10 / minute and 60 / hour |
Headers on successful responses
A request that passes the team and endpoint limits has these headers. Use them to slow down before you get a 429.
| Header | Meaning |
|---|---|
X-RateLimit-Limit | The per-endpoint limit for the current minute |
X-RateLimit-Remaining | The number of requests left for this endpoint in the current minute |
X-RateLimit-Reset | The number of seconds until the count resets |
X-RateLimit-Limit-team, X-RateLimit-Remaining-team, X-RateLimit-Reset-team | The same values for the per-team limit |
X-RateLimit-Limit-hour, X-RateLimit-Remaining-hour, X-RateLimit-Reset-hour | The same values for the hourly count of the endpoint |
For example, an endpoint with a limit of 30 requests a minute can return X-RateLimit-Limit: 30, X-RateLimit-Remaining: 29 and X-RateLimit-Reset: 60.
The hourly headers are most useful on an endpoint that has its own hourly limit. Those limits are in the table in Lower limits for some endpoints. On other endpoints, do not treat the hourly values as a limit that you must plan for.
The API checks the per-IP limit before it checks your API key. For this reason, these headers do not show the per-IP count.
Exceeding a limit
When you go over a limit, the API responds with 429 Too Many Requests:
{
"success": false,
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Too many requests — please slow down and try again later"
}
}
The response has these headers:
| Header | Meaning |
|---|---|
Retry-After | The number of seconds to wait before you send the request again |
Retry-After-<name> | Only for the per-team limit and the hourly limits. The name shows which limit it is: Retry-After-team or Retry-After-hour |
A 429 can also come from the network protection in front of the API. That response is an HTML page, not JSON. Do not expect a JSON body on every 429: check the status first.
How to handle a 429
After a refusal, the block lasts for the full window, counted from the moment of the refusal. For a limit of 1 minute, wait up to 1 minute. For an hourly limit, wait up to 1 hour. The block does not end at the start of the next hour. A retry during the block does not make the block longer, but it does count against the team limit. Retry-After gives the exact number of seconds.
- Stop sending requests for the number of seconds in
Retry-After. - Send the request again after that time. If you get a
429again, wait longer each time. - Do not retry in a tight loop. A refused request still counts against your team limit, so fast retries can use up the limit your other requests to that team need.