Rate limits

Each API key has two budgets, counted over a minute and shared across every endpoint:

BudgetA minuteWhat draws on it
Reads120Every GET, and POST/v1/tables/{id}/records/query, which is a read sent as a POST
Writes60Everything else: POST, PUT, PATCH, DELETE

The two are separate, so a burst of writes does not slow your reads. They are per key, so two keys in the same workspace each get their own. Each endpoint page says which budget it draws on.

These limits are on API keys only, and API calls cost no credits. The pacing of tool calls an AI client makes through a profile is a different thing, covered in the Help centre under Rate limits.

The headers

Every response to a key carries where its budget stands:

HeaderMeaning
x-ratelimit-limitThe budget this request drew on, a minute
x-ratelimit-remainingRequests left in it
x-ratelimit-resetSeconds until it refills

When a budget is spent

The next request answers 429 with the code rate_limited and a Retry-After header, in seconds:

429GET /v1/me
{
"error": {
"code": "rate_limited",
"message": "Rate limit of 120 requests per 1 minute reached for this key. Retry after the Retry-After header."
}
}

Wait that long and send the same request again. Nothing about the request was wrong, and nothing was changed by the refused call, so a retry is safe.

async function send(request) {
  const response = await fetch(request.url, request);
  if (response.status !== 429) return response;
  const seconds = Number(response.headers.get('retry-after') ?? 5);
  await new Promise((resolve) => setTimeout(resolve, seconds * 1000));
  return fetch(request.url, request);
}

Staying under

  • Ask for bigger pages. One request for 200 calls costs the same as one request for 20.
  • Write in batches. A table takes many records in one request, and the batch counts as one write.
  • Read what you need. POST/v1/tables/{id}/records/query filters and counts on the server, so you do not have to page a table to count it.
  • Watch x-ratelimit-remaining in a long job and slow down before it reaches zero, rather than after.