Skerry/ Reference/ Limits, agents and approvals
Limits, agents and approvals17
Constrain what a key, or an agent acting through it, can move. A policy names the business accountable and the person who approved it, caps amounts and counts, restricts destinations, wallets and currencies, and can require one or two people to approve. With its purpose and the evidence that a person agreed to it, a policy is a mandate: mandate_id is the policy id. A key that has ever had a policy stays restricted. Amount limits are integer minor units: of the family's fiat currency (cents) under scope: "family", where USD is limited together with USDC, USDT, USDB, OUSD and PYUSD, and EUR with EURC; of each currency's own smallest unit under scope: "currency".
- Policies, newest first, each with `usage`get/spend-policies
- Limit a key or an agentpost/spend-policies
- Spend policies getget/spend-policies/{id}
- Change a policy's amounts, counts, approval rules, purpose or datespatch/spend-policies/{id}
- Revoke a policy, immediatelypost/spend-policies/{id}/revoke
- Spend policies consent listget/spend-policies/{id}/consent
- Record that a person agreed to the mandate as it standspost/spend-policies/{id}/consent
- The operations counted under a mandate, newest firstget/spend-policies/{id}/usage
- A customer's spend policies as mandates (`objectget/mandates
- Operations held for a person to approve, newest first, each with `payee_display`get/approvals
- One held operation, as it was asked, with its `decisions`get/approvals/{id}
- Approve a held operation and run it oncepost/approvals/{id}/approve
- Refuse a held operationpost/approvals/{id}/deny
- Make an approve link and a deny link for one personpost/approvals/{id}/links
- The page behind an approval linkget/approve/{token}
- The page's confirm buttonpost/approve/{token}
- What a key or an agent may still move, per windowget/customers/{id}/limits