Create a per-agent spend mandate
create_mandateCreate a spend mandate for an agent: per-payment cap, period cap, currencies, corridors, rails (bank, provider, stablecoin_wallet), optional cap on cost above the official rate, the person who approves, and an expiry. A router key is required. A person still approves every payment. The mandate does not send money.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | Yes | The window max_per_period applies to: day, week or month. | |
| agent_id | Yes | Your own id for the agent this mandate covers, e.g. 'ap-agent-1'. | |
| access_key | No | A router key (rk_...), if not sent as a Bearer header. | |
| expires_at | Yes | ISO 8601, in the future. | |
| rails_allowed | Yes | Rails the agent may use: bank, provider, stablecoin_wallet. | |
| max_per_period | Yes | { amount, currency } | |
| max_per_payment | Yes | { amount, currency } | |
| corridors_allowed | Yes | e.g. USDT-ZAR | |
| approver_person_id | Yes | The person who approves. An agent cannot approve alone. | |
| currencies_allowed | Yes | ISO 4217 codes the agent may pay in, e.g. ['ZAR', 'USD']. | |
| max_cost_above_official_pct | No | Optional. Most a payment may cost above the official rate, in percent (e.g. 1.5); null for no cap. |