v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-0172165343.2 KB
Rate Limiter

Rate Limit Limit

Rate Limiter Check and Consume

post/api/v1.rate-limit.limit

Request body

namespacestring nullable
keystring required
tokensinteger

Number of tokens to consume (default: 1)

Example request

{
  "namespace": "some_namespace",
  "key": "some_key"
}

Response

allowedboolean required

Whether the request is allowed

remaininginteger required

Number of tokens remaining

retry_after_msinteger nullable

Milliseconds until enough tokens are available (only present when allowed is false)