Skip to content
gist.link ↗

rateLimits

Query Billing API — POST https://billing.api.gist.link/graphql

THE cross-service API rate-limit contract: auth/api calls this (via a self-issued ROLE_SERVICE token) when minting org-bound access tokens and stamps the resolved budgets into the token’s rate_limits claim, which the shared auth bundle enforces in every product API. Resolution: Subscription overrides win, then the plan (free-plan fallback for orgs with no subscription). Callable by ROLE_SERVICE tokens or an org member for their own org.

billing:query:rateLimits

The calling IAM key must hold this permission (or a wildcard that covers it: billing:query:* or billing:*) and the access token must have been minted with audience=billing. See Permissions.

type Query {
rateLimits(organizationId: ID!): RateLimitResult!
}
Argument Type Required Description
organizationId ID! Yes —

RateLimitResult! — see the Billing types reference.

Terminal window
curl https://billing.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query RateLimits($organizationId: ID!) { rateLimits(organizationId: $organizationId) { organization_id plan_key machine_per_minute user_per_minute_per_seat human_total_per_minute_override } }",
"variables": {
"organizationId": "01a01234-abcd-7000-9000-0123456789ab"
}
}
JSON