Skip to Content
API

Rate limits

The four rate-limit buckets, the concurrency cap, the two daily ceilings, and how to read the headers to back off before you are refused.

View as Markdown

Limits are uniform across every plan, Free included. Protection comes from the shape of the buckets, sized to the cost of the work, rather than from plan gating.

Every bucket except rum-read is keyed on your credential, never on your IP. Your CI runner cannot throttle your production integration, and a shared office network does not put every customer behind it in one bucket.

The buckets

BucketLimitApplies to
general600 requests/minuteEvery authenticated request
heavy-query120 requests/minute and 5 concurrentAnalytical reads over a time range
rum-read15 to 60 requests/minute, counted per routeMost reads under /rum/
run20 requests/minuteEvery run:-class endpoint
Per-credential daily ceiling50,000 requests/dayResets at midnight UTC
Per-workspace daily ceiling200,000 requests/dayAcross every credential in the workspace

rum-read comes from the RUM handlers behind the public routes. It counts each route separately, and the limit is not the same on every route. It is between 15 and 60 requests per minute.

Some RUM reads do not use it. All these limits are much lower than the 120 of heavy-query, so on a /rum/ route this bucket stops you first. If you want one number that always works, plan for 15 requests per minute per route.

The X-RateLimit-* headers do not track this bucket, so control your own pace.

The two daily ceilings are sized to bound a runaway retry loop, not to price the product. No human clicking through a dashboard approaches them; a broken agent loop reaches them in minutes.

Because the workspace ceiling is shared across every credential, a single misbehaving script can throttle every other integration in the same workspace. Both ceilings can be producing 429s for different reasons during the same incident.

Which endpoints are heavy

This is set for each endpoint, not for each module. More than 200 reads use the heavy-query bucket. The Endpoint reference marks them with the price 5 in the Credits column.

The safe assumption is that any analytical read over a time range is heavy.

RUM reads also use heavy-query. Where rum-read also applies, it is the lower of the two limits, so it refuses them first.

The concurrency cap

Five heavy reads at the same time per credential is a hard limit, separate from the count per minute. Sixty scans of twenty seconds each in one minute are within the rate limit, but they fill the query pool. The concurrency cap is what stops them.

A 429 naming heavy-query while X-RateLimit-Remaining still looks healthy means you hit the concurrency cap, not the rate. The headers cannot tell you this in advance, so cap your own worker pool at five concurrent heavy reads and you will never see it.

Reading the headers

Every response carries the state of whichever bucket will refuse you first, not always the general one:

X-RateLimit-Limit: 120
X-RateLimit-Remaining: 117
X-RateLimit-Reset: 1785836520
X-Request-Id: 3f9a1c22-7b48-4e0d-96a1-5c8b2d7e4f10

So X-RateLimit-Limit varies between endpoints, and that is not a bug. It answers "how much budget do I have for this call".

"Tightest" means the bucket with the fewest requests left, not the lowest limit. When only five requests are left in your general budget, a heavy read also reports the general bucket, because that bucket stops you next.

X-RateLimit-Reset is an absolute epoch second, not a countdown. Sleep until it, do not sleep for it.

Back off when X-RateLimit-Remaining gets low rather than waiting to be refused. A client that paces itself off the headers never sees a 429 at all.

When you are refused

429, with a Retry-After header in seconds and a body naming the bucket:

{
  "type": "https://docs.vitalsentinel.com/api/errors/rate-limited",
  "title": "Rate limit exceeded",
  "status": 429,
  "detail": "Rate limit reached on the heavy-query bucket. Retry after 34 seconds. Narrow the date range or request fewer rows.",
  "instance": "/api/public/v1/domains/9c2f4d18-5e6a-4b70-8c19-2d3f5a7b9e04/overview",
  "request_id": "3f9a1c22-7b48-4e0d-96a1-5c8b2d7e4f10",
  "bucket": "heavy-query",
  "retry_after_seconds": 34
}

Honor Retry-After.

An older integration can handle a RUM refusal incorrectly. In earlier versions, this limit came back as clickhouse-error with no retry interval. An old client thinks that it is a server fault and retries immediately. It is a rate limit, not a database failure. It now reports like any other bucket, with bucket, retry_after_seconds and a Retry-After header, so wait for the interval.

The buckets fail open if the cache backing them is unavailable. A burst that "worked once" is not evidence that a limit does not apply. Build the backoff anyway.

Rate limits are not credits

Two independent meters, and confusing them wastes debugging time:

Rate limitsAPI credits
CountsRequests per minute or per dayCost per request, weighted by how expensive the work is
Keyed onYour credentialYour workspace
Refused with429 rate-limited402 quota-exhausted
ResetsPer minute, or midnight UTCOn your billing anniversary
Waiting helps?Yes, in seconds or hoursNot until the next cycle

A cached answer costs zero credits but still consumes a rate-limit slot and still counts against both daily ceilings. That is deliberate: with cache hits free, the daily ceilings are what bound a tight polling loop against a warm cache.

OAuth endpoint limits

The OAuth endpoints run before a credential exists, so they are limited per source IP instead. See Authentication.

A client that paces itself

import time

MAX_CONCURRENT_HEAVY = 5   # The concurrency cap. Headers cannot warn you about this one.
LOW_WATER_MARK = 20        # Slow down before you are refused, not after.

def paced_get(path: str, **params) -> dict:
    response = http.get(path, params=params)

    if response.status_code == 429:
        time.sleep(int(response.headers.get("Retry-After", "5")))
        response = http.get(path, params=params)
        response.raise_for_status()

    remaining = int(response.headers.get("X-RateLimit-Remaining", "1000"))
    if remaining < LOW_WATER_MARK:
        # Absolute epoch second: sleep until it, not for it.
        reset_at = int(response.headers["X-RateLimit-Reset"])
        time.sleep(max(0, reset_at - time.time()))

    return response.json()

On this page

VitalSentinel

Know what changed before it costs you revenue

A stray noindex, a robots.txt change, a slower LCP, a Googlebot crawl drop: one alert, with what to fix first.

  • Free plan for 1 domain
  • Set up in minutes
  • No credit card required