A mandate is the on-record spending rulebook for one agent. Every payment is authorized against it before execution; an amount outside the rules is rejected and no money moves.
In every path below, ORG is your organization id (the Settings page of the console) and
MANDATE_ID the mandate’s id. In the create body, owner_id is required: it is the
responsible_party_id the agent’s registration response returned, the person answering for
the agent.
Create a mandate
In a production organization this requires completed identity verification
(403 KYC_NOT_VERIFIED otherwise); a sandbox organization skips it. agent_id must be
the canonical agent_… identifier from registration — a record UUID gets an immediate
422 AGENT_ID_MALFORMED, an agent outside your organization a 404 AGENT_NOT_FOUND.
Who may set limits. Limits are terms a person agrees to, so an API key never activates a
mandate by itself. A request made with an API key (or by a member below admin) returns
202 with status: pending_approval; the organization’s owner or admin approves it — in a
sandbox through the link e-mailed to them, in a production organization with their passkey
in the console — and only then is the mandate active. A request made from an owner or
admin session with a passkey is signed and activated in one step.
Biometric step-up (optional). An organization can ask for a second proof above a
threshold: set approval.biometric_above to {"USD": "5000"} (compared, in the request’s
currency, with the largest limit asked for) or approval.biometric = "always". The passkey
still signs the terms; the approve call then answers biometric_required with a page where the
approver confirms with their face at authID (their identity must have been verified with authID),
the sentence describing the mandate shown on that page. Polling …/biometric/status issues the
mandate once authID accepts, with approval_method: passkey+authid and both proofs in the
evidence: the passkey over the terms, the authID attestation over the person. No biometric data
is stored by Regent. BIOMETRIC_NOT_ENROLLED means the approver has no authID identity yet;
BIOMETRIC_FAILED means the confirmation did not complete and the approval can be retried.
An enrolled agent may also ask for its own mandate with its agent credential
(POST /v1/agent/mandates/request: currency, limits, scope, purpose); the request lands under
Approvals and in the owners’ inbox, and the agent only retries authorize once a person has
signed. See Enrol an agent. Two rules on the ask
itself: it has a ceiling of ten times the sandbox budget for the currency per window (USD
1 000 per purchase, KZT 500 000; above it ASK_TOO_LARGE names the figure — a larger budget is
the owner’s to set in the console), and an agent whose enrolment promised its own key signs the
ask like any other request (otherwise SIGNATURE_REQUIRED); the SDK does that by itself.
curl -X POST https://api.regentprotocol.org/v1/organizations/ORG/mandates \
-H "Authorization: Bearer rgnt_..." -H "content-type: application/json" \
-d '{
"agent_id": "agent_688b10bc62aef…",
"owner_id": "<responsible_party_id from registration>",
"currency": "USD",
"limits": {
"per_tx_limit": "50",
"daily_limit": "300",
"monthly_limit": "5000"
}
}'Limit fields
| Field | Meaning |
|---|---|
per_tx_limit | Maximum for a single authorization |
daily_limit / monthly_limit | Rolling usage ceilings (settle adjusts them) |
entity_key + per_entity_limit | Per-entity sub-budget (e.g. entity_key: "customer", at most N per customer/month) — each authorize must then carry entity_id |
relational_cap | Bound the action by a referenced anchor’s amount (e.g. a refund must not exceed the original charge) — authorize must then carry reference + reference_amount |
timezone | IANA zone the daily/monthly windows roll over in (Asia/Almaty); the platform fills it from the organization’s clock; absent = UTC; an unknown name is refused (422) |
entity_limits | Caps per counterparty (terms-v4): [{"match": "arbuz.kz", "per_tx_limit": "3000", "daily_limit": "6000", "monthly_limit": "20000"}, {"match": "*", "monthly_limit": "10000"}] — daily_limit is optional (UTC day, must not exceed monthly_limit); the gate passes the rail-named payee (and payee_source) on authorize; settle takes tool + payee so the same counters move |
Optional: expires_at, metadata. settlement_chain is solana (the only live anchor).
The response includes the mandate id, status: active, and a terms_commitment in
metadata — the on-chain anchor gets a commitment to the terms, never the ceilings
themselves.
Authorize a payment
curl -X POST https://api.regentprotocol.org/v1/organizations/ORG/mandates/MANDATE_ID/authorize \
-H "Authorization: Bearer rgnt_..." -H "content-type: application/json" \
-d '{"amount": "25", "currency": "USD"}'Optional fields: idempotency_key, entity_id (per-entity budgets), reference +
reference_amount (relational cap), caller_agent_id (when set, must equal the
mandate’s agent — stops one agent spending against another’s mandate; the control
gate always sends it).
Success returns the authorization with a short-lived JWT proof:
{
"id": "de35ead1-…",
"mandate_id": "…",
"agent_id": "agent_688b…",
"amount": "25.000000",
"currency": "USD",
"status": "authorized",
"jwt_token": "…",
"jti": "…",
"guardian_score": 0.12,
"authorized_at": "…"
}A refusal is 402 with detail.code — the full ladder is in the
error reference. The two you must handle: MANDATE_LIMIT_EXCEEDED
(don’t retry the same amount) and MANDATE_SUSPENDED (the kill switch — stop).
Settle
After the real charge lands, reconcile the difference between approved and settled:
POST /v1/organizations/ORG/mandates/MANDATE_ID/settle
{"delta": "-3.50"} // settled − approved; negative = came in lower / refundReturns updated daily_used / monthly_used.
Revoke a mandate
POST /v1/organizations/ORG/mandates/MANDATE_ID/revokeIndependent of agent revocation: revoking the agent suspends all its mandates; revoking one mandate leaves the agent (and other mandates) alone.