Create a budget
Requires the manage scope. A budget sets a per-call maximum, a limit per period, or both.
Authentication
AuthorizationBearer
An AgentRouter API key or an OAuth access token issued to an MCP host or the CLI.
Request
This endpoint expects an object.
name
scope
Allowed values:
scope_ref
Key id or session id for key and session budgets.
period
Allowed values:
limit_usd
Spend limit per period.
per_call_max_usd
Caps max_cost_usd for every call in scope.
status
Allowed values:
Response
The budget
budget_id
name
scope
Allowed values:
scope_ref
period
Allowed values:
limit_usd
per_call_max_usd
status
Allowed values:
created_at
Errors
400
Bad Request Error
403
Forbidden Error