Request Spend Approval
ledger_request_approvalAsk your workspace owner for a one-shot spend exception before a ledger_track that the cap would refuse.
Creates a pending permit for exactly amount_cents on the given service. The owner (a human, or a supervisor agent holding the workspace_key) approves or denies it with ledger_approval_decide. An APPROVED permit is consumed by the next ledger_track for this agent whose amount fits inside it — the budget cap itself does not change. Permits expire after 1 hour undecided. Poll with ledger_approvals to see the decision.
Claiming a brand-new agent_id requires workspace_key; otherwise pass the agent's agent_secret.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | why, one line — shown to the approver | |
| service | Yes | what the money is for (e.g. "openai:gpt-5 batch eval") | |
| agent_id | Yes | the agent asking for the exception | |
| agent_secret | No | the agent's own secret (either this or workspace_key) | |
| amount_cents | Yes | the spend to be approved, in cents | |
| workspace_key | No | the owning workspace's key (either this or agent_secret) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||