Create a new budget
Creates a new budget in the workspace. Exactly one scope variant must be set (workspace / project / identity / api_key / provider / model). At least one of limits.amount, limits.token_limit, or rate_limit.requests_per_minute MUST be provided. Uniqueness is enforced across (workspace_id, scope_kind, scope_target_id).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Exactly one variant must be set.
At least one of amount / token_limit / rate_limit.requests_per_minute must be provided on the budget; the handler enforces that invariant.
Optional rate limit.
Whether the budget should be active immediately. Defaults to true when omitted (handler enforces).
Optional expiration. When set in combination with is_active=true, the value MUST be in the future; the handler rejects past values.
Response
OK
Newly created budget.