Skip to main content

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.

PolicyRoutesApplies toCounted perLimit
auth-ropcPOST /auth/ropcanonymousIP address10 per minute
onboarding-caGET /onboarding-caanonymousIP address60 per minute
uploadsPOST /releases/upload, POST /resources/upload, PUT /resources/upload/{id}, POST /flows/artifactscallers with a tokenclient + subject10 at once, then 10 per minute
authenticated-defaultevery other routecallers with a tokenclient + subject300 at once, then 100 per 10 seconds
anonymous-defaultevery other routecallers without a valid tokenIP address60 per minute
ip-ceilingevery routeeveryoneIP address3000 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-After says 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​

HeaderExampleMeaning
Retry-After7Seconds to wait
RateLimit-Policy"auth-ropc";q=10;w=60The 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=7Remaining quota r, seconds until the next quota t
X-Trace-Id4bf92f35...The request's trace id, also in the body

The body is application/problem+json with status, title, detail, policy, retryAfterSeconds, traceId and requestId.