Guides

Write a mandate

Draft an agent's spending rules, try purchases against the draft without spending anything, sign the version with a passkey, and change or revoke it later.

View as .mdUpdated
A card number was never a permission. A mandate is the owner's signed statement of what an agent may buy. The agent cannot read it into a prompt and talk its way past it: the policy engine applies it to every purchase.

What you end up with

An active, signed mandate version for one agent: what it may buy alone, what needs a person, what it may never buy, on which rails and networks, until a set date. Every later purchase by that agent carries the mandate id and version in its decision trace and in its receipt.

Steps

Start a draft

In the Console, open Mandates and create a draft for the agent. A draft does nothing until it is signed.

List of mandates with version, status and signer
Mandates: versioned spending rules, each signed with a passkey.Captured 2026-11-16

Set the limits

FieldExample mandateRule
Auto-approve limit0.10 USDCUp to this amount the agent buys alone.
Hard cap per purchase0.50 USDCAbove it, always DENY. Must be at least the auto-approve limit.
Unknown-merchant limit0.10 USDCAbove it, an unknown merchant needs a person.
Plan hard cap1.50 USDCThe most a whole installment plan may cost.
Card hard cap and auto-approve25.00 USD, 5.00 USDThe same two limits for virtual cards, in US dollars.

The hard cap cannot be higher than the agent's budget (2.00 USDC in the example mandate). Budgets themselves are set separately, at organization, team and agent level.

Say what is allowed

Choose the rails (x402 USDC, direct USDT, virtual card), the networks, the assets, the categories of service and the merchant tiers the agent may pay. You can also set the order in which networks are tried and an expiry date. Anything not listed is denied at step 1b of the policy.

Try purchases against the draft

Before signing, simulate a purchase: pick a service or a URL, an amount, a rail and a network. The simulation runs the same policy engine as a real purchase, reserves nothing and calls no network. It returns the decision, the reason code and the step-by-step trace.

Policy explorer

Which step decides this purchase, and why?

Amount
Merchant tier
Agent budget left
Step read 11 of 11
  1. 0Payments not pausedpayments not pausedpass
  2. 1Agent credential and spending rulescredential valid, mandate activepass
  3. 1bAllowed payment method, network, asset, category and merchant tierrail allowed, tier VERIFIED allowedpass
  4. 2Matches the Catalog listingmatches the Catalog listingpass
  5. 3Shield block rulesno block rule hitpass
  6. 4Per-purchase limit and budget0.05 USDC <= hard cap 0.50 USDC; agent budget 2.00 USDC okpass
  7. 4bFunded networka funded network existspass
  8. 5Shield review rules(approval clears)no review rule hitpass
  9. 6Unknown-merchant limit(approval clears)merchant tier VERIFIEDpass
  10. 7Auto-approve limit(approval clears)0.05 USDC <= auto-approve limit 0.10 USDCpass
  11. 8Within spending rulesall checks passedhit

Decision

ALLOW

WITHIN_POLICY · Within your rules

Decided at step 8. Every later step is skipped.

An approval clears steps 5 to 7 only. It never lifts the hard cap, a budget or any other deny step.

Text description

The policy engine checks a purchase in a fixed order and the first step that hits decides. Steps 0 to 4b can only deny. Steps 5 to 7 can only ask a person. Step 8 allows. An approval makes steps 5, 6 and 7 pass as approved by the owner; it does not change any deny step.

This explorer uses the example mandate's limits: auto-approve 0.10 USDC, hard cap 0.50 USDC, unknown-merchant limit 0.10 USDC, agent budget 2.00 USDC. The Catalog match, Shield and funding steps always pass here.

Current inputs: amount 0.05 USDC, merchant tier VERIFIED, agent budget left 2.00 USDC, rail allowed, payments not paused, approval not given.

  1. Step 0, Payments not paused: pass, payments not paused.
  2. Step 1, Agent credential and spending rules: pass, credential valid, mandate active.
  3. Step 1b, Allowed payment method, network, asset, category and merchant tier: pass, rail allowed, tier VERIFIED allowed.
  4. Step 2, Matches the Catalog listing: pass, matches the Catalog listing.
  5. Step 3, Shield block rules: pass, no block rule hit.
  6. Step 4, Per-purchase limit and budget: pass, 0.05 USDC <= hard cap 0.50 USDC; agent budget 2.00 USDC ok.
  7. Step 4b, Funded network: pass, a funded network exists.
  8. Step 5, Shield review rules: pass, no review rule hit.
  9. Step 6, Unknown-merchant limit: pass, merchant tier VERIFIED.
  10. Step 7, Auto-approve limit: pass, 0.05 USDC <= auto-approve limit 0.10 USDC.
  11. Step 8, Within spending rules: hit, all checks passed, reason code WITHIN_POLICY.

Decision: ALLOW with reason code WITHIN_POLICY, decided at step 8.

Sign with a passkey

Signing asks for your passkey. The version's rules are serialized as canonical JSON and hashed; your passkey signs a challenge bound to that hash. The mandate is issued in AP2 v0.2 format, with your WebAuthn assertion in the signature slot; Abazi builds and verifies it itself. The version becomes active, and the version it replaces becomes superseded.

Mandate detail with limits and allowed rails
A mandate version: limits, allowed rails, networks, categories and merchant tiers.Captured 2026-11-16

Changing and revoking

Versions are never edited after signing. To change a rule, create a new version (it starts from the current one), try it, and sign it. Abazi can show what changed between any two versions.

Revoking takes a fresh passkey and acts at once:

  • the active version becomes revoked;
  • pending or approved approvals for the agent are invalidated;
  • purchases that are reserved or waiting for approval are denied with MANDATE_REVOKED;
  • a revocation receipt is issued, so the revocation itself is on the record.

Even a purchase that was already reserved is caught: the signer rechecks the mandate before it signs.

Failure cases

SituationResult
No signed version yetEvery purchase is denied with MANDATE_MISSING.
The expiry date passedDenied with MANDATE_EXPIRED; sign a new version.
A rail, network, category or tier is not listedDenied with RAIL_NOT_ALLOWED, CHAIN_NOT_ALLOWED, CATEGORY_NOT_ALLOWED or MERCHANT_TIER_NOT_ALLOWED.
A limit is set higher than the hard cap or the agent budget allowsThe draft is refused before it can be signed.

Next steps

On this page