Approve or Deny a Spend Request
ledger_approval_decideApprove or deny a pending spend permit — workspace owner only.
The agent's own agent_secret can REQUEST an approval but can never decide one: a credential that can approve its own requests is not a control. decision must be 'approve' or 'deny'; only pending permits can be decided. An approved permit is consumed by the agent's next ledger_track within its amount — it is a one-shot exception, not a raised cap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | the agent that requested the permit | |
| decision | Yes | 'approve' or 'deny' | |
| approval_id | Yes | the apr_ id from ledger_request_approval / ledger_approvals | |
| workspace_key | Yes | the key of the workspace that owns the agent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||