Get mandate
curl -X GET "https://api.52-28-238-205.sslip.io/v1/mandates/{id}" \ -H "Cookie: <console session cookie>"Returns a mandate with all its versions and the agents it governs. Console session or API key with payment:read; an agent credential may read only its own mandate, redacted to status, limits, allowed values and expiry.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...agentKeyAuthorization: Bearer agk_test_...
Path
idstringrequiredMandate id (mdt_...).
uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
id*IdMandate id (mdt_...).
Success.
application/json- response
mandate*One mandate version. The agent-facing GET returns only id, version, status, limits, allowed, expires_at.
active_version?integer|nulllatest_version?integer|nullversions*array<>agents?array<>|null[key: string]?anyGETGet mandate template
Returns pre-filled mandate fields and the allowed options (rails, assets, merchant tiers, categories, chains) for the editor. Console session or API key with payment:read.
POSTCreate mandate version
Creates a new draft version from edits to the latest version; the active version stays in force until the draft is signed. Console session or API key with mandate:edit.