Simulate mandate
curl -X POST "https://api.52-28-238-205.sslip.io/v1/mandates/simulate" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"agent_id":"agt_01jd2x3k4m5n6p7q8r9s0t1v2w","service_id":"svc_01jd2x3k4m5n6p7q8r9s0t1v2w","amount_base_units":"250000"}'Runs the same policy evaluation as live payments against draft fields, a mandate or an agent's mandate, and returns the decision, reason code and trace. Console session or API key with mandate:edit; nothing is reserved or sent.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Body
application/json · required. Fields are listed under Request body below.
owner, admin, finance, operator. The caller must hold this permission, or the call is refused with 403.uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
application/json- body
mandate?|nullmandate_id?|Mandate id (mdt_...).
merchant?string|nullurl?|URL of a paid resource. Use it for a merchant that is not in the Catalog; Abazi reads its 402 response.
service_id?|Catalog service id (svc_...).
amount_base_units*|Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).
rail?|Payment rail: x402 (stablecoin over HTTP 402), wdk (direct USDT transfer) or card.
network?|Network as a CAIP-2 id, for example eip155:84532 (Base Sepolia) or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (Solana devnet).
agent_id?|Agent id (agt_...).
Success.
application/json- response
decision*DecisionPolicy decision: ALLOW, REQUIRE_APPROVAL or DENY.
reason_code?|Machine-readable reason from the reason code catalog, for example ABOVE_AUTO_THRESHOLD.
scope?string|nullmessage?string|nullnext_action?string|nulltrace*array<>policy_version?string|nullinputs*[key: string]?anyPOSTRevoke mandate
Revokes the active version, denies pending payments of the agents it governs and adds a signed revocation receipt. Console session or API key with mandate:sign; a console session needs a passkey step-up within the last 5 minutes. Cannot be undone.
GETGet budget tree
Returns the organization, team and agent budgets as a tree with limit, reserved, spent and available amounts, plus confirmed spend per day for 30 days. Console session or API key with payment:read; team-scoped roles see their team only.