Rate limit policies
The policies the API gateway applies, and their limits. The gateway configuration is the source of these numbers; the two are changed together.
note
The numbers below are the initial values. Until they are agreed with your platform operator, rate limiting may be switched off on your tenant. Ask your operator which values apply.
| Policy | Routes | Applies to | Counted per | Limit |
|---|---|---|---|---|
auth-ropc | POST /auth/ropc | anonymous | IP address | 10 per minute |
onboarding-ca | GET /onboarding-ca | anonymous | IP address | 60 per minute |
uploads | POST /releases/upload, POST /resources/upload, PUT /resources/upload/{id}, POST /flows/artifacts | callers with a token | client + subject | 10 at once, then 10 per minute |
authenticated-default | every other route | callers with a token | client + subject | 300 at once, then 100 per 10 seconds |
anonymous-default | every other route | callers without a valid token | IP address | 60 per minute |
ip-ceiling | every route | everyone | IP address | 3000 per minute |
Routes are relative to the API base path (/api/v1).
How the limits work
- Per minute limits use a sliding window: the last 60 seconds count, in 10-second steps. Permits come back
when the 10-second step they were used in leaves the window. After a burst that uses the whole limit, nothing
comes back for up to 60 seconds, and then all of it at once;
Retry-Aftersays 60 in that case. - "N at once, then M per period" is a token bucket: you can burst N requests, and the bucket refills with M requests every period. A user interface that loads a page with many calls fits in the burst.
- The IP ceiling is checked before the policy. It is loose on purpose and exists to stop floods, not to meter normal use. An office behind one address shares it.
- A request with an expired or invalid token is anonymous: it counts against the IP address, and the
route itself still answers
401. - The health check and the OpenAPI document are not limited.
Headers on a rejection
| Header | Example | Meaning |
|---|---|---|
Retry-After | 7 | Seconds to wait |
RateLimit-Policy | "auth-ropc";q=10;w=60 | The policy: quota q per window w seconds. For a token bucket this is the refill rate (q=100;w=10 for authenticated-default), not the burst size |
RateLimit | "auth-ropc";r=0;t=7 | Remaining quota r, seconds until the next quota t |
X-Trace-Id | 4bf92f35... | The request's trace id, also in the body |
The body is application/problem+json with status, title, detail, policy, retryAfterSeconds,
traceId and requestId.