Create a spending mandate
mandate_createDraft a Privi Mandate: the human's signed permission for your agent to spend, with a budget, per-payment cap, allowed payees and expiry. Returns sign_url: send it to the human, who reads the plain-English terms and signs once with their wallet (free, no transaction). Nothing can be spent until they sign. Requires the organization API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days until the mandate expires (1-365) | |
| payees | No | Allowed payees (0x addresses or domains); omit for any | |
| purpose | Yes | What the agent may spend on, in plain words | |
| stream_id | Yes | The agent (stream) that will spend, e.g. 'shopping-agent' | |
| agent_wallet | No | 0x wallet the agent pays from (optional) | |
| max_total_usdc | Yes | Total budget in USDC, e.g. '250' | |
| principal_wallet | Yes | 0x wallet of the human who authorizes the spending | |
| max_per_payment_usdc | No | Cap per payment; defaults to the total |