Policy templates
Fleet spend templates applied when creating wallets, period allowance, max transaction, and optional allowlist, so many agents share one policy.
Same flow in MCP: rill_create_wallet
Auth
Owner Supabase JWT required on every route. Send Idempotency-Key on create. Pass policy_template_id on POST /wallets to apply the template when creating a wallet.
Authorization: Bearer <owner JWT>Featured endpoints
Create a policy template
POST /policiesDefine fleet defaults once, then create many wallets with the same allowance and allowlist. Canonical product defaults live in @rill/shared PRODUCT_POLICY when you omit a template.
Request body
What to save
Save template id and pass it as policy_template_id on POST /wallets (or MCP rill_create_wallet).
- List with GET /policies; delete with DELETE /policies/:id.
All endpoints
Usage notes
- When policy_template_id is set on mint, template allowance fields override the body values.
- MCP twin path: create here, then rill_create_wallet with policy_template_id.