Skip to navigation

Rate limits

Paid limits how fast each account can call https://api.paid.ai/v1, so one integration’s burst of traffic can’t slow down everyone else’s. Within the limit you never see it. Past it, a request is refused with a 429 that tells you how long to wait.

Use this page to:

  • Know what counts. Reads and writes have separate budgets.
  • Handle a 429. Wait for Retry-After, then retry.
  • Avoid hitting the limit. Spread work out and page through lists instead of polling.

How limits are counted

Each account has two budgets, counted separately:

BudgetSpent by
ReadGET requests, and the few POST operations that only read, such as a metrics query or a search. Their API Reference pages say so.
WriteEvery other request: creates, updates, archives and other actions.

Every request costs one unit of its budget, whatever it returns. A budget allows short bursts above its steady rate, then refills over time, so a brief spike is fine but sustained traffic above the rate is not. Running out of the write budget doesn’t affect reads, and the other way round.

Limits apply per organization, across all of its API keys, so a sandbox organization has a budget of its own.

The 429 response

A rate-limited request returns HTTP 429 with a Retry-After header, the number of seconds to wait, and the standard error object:

{
"error": {
"type": "rate_limit_error",
"code": "rate_limited",
"message": "Too many requests. Retry after 2s.",
"requestId": "req_8f3a2c",
"docUrl": "https://docs.paid.ai/preview/developers/api/errors#rate_limited"
}
}

The request did nothing: nothing was created or changed. Successful responses carry no rate limit headers, and Paid doesn’t publish the budgets, so rely on Retry-After rather than counting requests yourself.

Back off correctly

  1. When a request returns 429, wait for the seconds in Retry-After before sending it again.
  2. Send the same request, with the same Idempotency-Key for a write, so a retry can never act twice.
  3. If the retry is refused too, wait longer each time and add a little random jitter, so many clients don’t retry at the same moment.

Spread batch jobs out over time rather than sending them all at once, and use pagination with a large limit instead of fetching objects one by one.