v1
Guide

Limits and quota

The API has a requests-per-minute limit and a monthly quota, both per company. Every response says how much is left.

How the limits work

  • The per-minute limit protects the API from bursts. It refills by itself over the minute.
  • The monthly quota counts the month's requests and resets on the first day of the next month, in UTC.
  • Both belong to the company: all API keys share the same limit and the same quota.
  • The values depend on the plan. The API Premium add-on raises both.
  • There is also a cap on calls in progress at the same time. A short burst waits its turn; if the wait goes past the limit, the response is 429 with a Retry-After of 1 second.

The response headers

HeaderWhat it says
X-RateLimit-LimitHow many requests per minute the company can make.
X-RateLimit-RemainingHow many are left in this minute.
X-RateLimit-ResetWhen the limit refills, in Unix seconds.
X-Quota-UsedHow many requests the company has made this month.
X-Quota-LimitThe plan's monthly quota.

When the limit runs out

StatusWhat happenedWhat to do
429The per-minute limit was reached.Wait for the time in the Retry-After header (in seconds) and retry.
402The monthly quota ran out.Calls come back next month or with a plan upgrade. Retrying does not help.
429
{
  "error": "too_many_requests",
  "message": "Muitas requisições com esta chave de API. Aguarde o fim da janela e tente novamente."
}

Good practices

  • Read X-RateLimit-Remaining and slow down before it hits zero, instead of waiting for the 429.
  • For large loads, use bigger pages instead of many small calls.
  • Prefer webhooks to polling the same route in a loop to find out whether something changed.