Skip to main content

Create a quota

POST 

/api/v1/quotas

Creates a project-scoped quota. requests is valid for scope: project/api_key; tokens and cost_usd are valid for scope: project/agent/actor. Any other scope/metric pair is rejected with 400 (no attribution exists to enforce it). An actor quota caps one end user's spend, matched from the generation's session; a null scope_ref means one budget per actor rather than a pooled project total. A duplicate quota (same project, scope, scope_ref, metric, window) is rejected with 409.

Request

Responses

Quota created successfully