Authorize Treasury Spend
authorize_treasury_spendEvaluate the policy, then ATOMICALLY reserve the budget. use it rather than commit_treasury_spend for treasury spend specifically; an object with 5 fields including exception, field. $0.25 USDC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | The scope this operation operates on. See the schema for its type and whether it is required. | |
| intent | No | The commercial intent the operation evaluates. | |
| policy | No | The policy document or policy id the decision is evaluated against. | |
| agent_id | No | The identifier of the agent the operation concerns. | |
| principal | No | The principal this operation operates on. See the schema for its type and whether it is required. | |
| requestId | No | A caller-supplied idempotency key. The same key returns the same result instead of charging twice. | |
| amount_usd | No | The amount in USD. The settlement rail converts it to the exact atomic amount. | |
| ttl_seconds | No | How long the record stays valid, in seconds. | |
| policy_version | No | Version of the policy the decision is bound to. | |
| idempotency_key | No | The idempotency key this operation operates on. See the schema for its type and whether it is required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The `id` field of the response. | |
| kind | No | The `kind` field of the response. | |
| field | No | The `field` field of the response. | |
| exception | No | The `exception` field of the response. | |
| request_id | No | The `request_id` field of the response. |