policy.create
Create a spending policy for an AI agent. Sets rules the agent must follow before any financial action: per-transaction ceiling, daily limit, hold threshold, blocked counterparties, allowed purposes, oracle stability gate. Once set, every payment by this agent is checked against the policy automatically via policy.check.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable policy name | |
| agent_id | Yes | Stable identifier for the agent or org (wallet address, session prefix, org slug, etc.) | |
| max_per_tx | No | USD ceiling per single transaction. Payments above this are BLOCKED. | |
| max_per_day | No | USD rolling daily ceiling. Payments that would exceed this are HOLDed. | |
| blocked_regions | No | ISO 3166-1 alpha-2 country codes to block. | |
| allowed_purposes | No | If set, only payments with a purpose in this list are allowed. | |
| require_hold_above | No | Route to HOLD queue for human review if amount exceeds this threshold. | |
| require_oracle_stable | No | If true, HOLD on CAUTION as well as UNSTABLE oracle status. | |
| blocked_counterparties | No | Wallet addresses or LEIs to block. |