Mandates
POST/v1/mandates/{id}/versions

Create mandate version

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/mandates/{id}/versions" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"name":"Example","scope":{},"limits":{},"allowed":{},"chain_priority":["string"],"expires_at":"2026-11-16T12:00:00Z","notes":"string","approvers":["string"]}'

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.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/mandates/{id}/versionsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • idstringrequired

    Mandate id (mdt_...).

Body

application/json · required. Fields are listed under Request body below.

Requires permissionmandate:edit
Held by owner, admin, finance, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

id*Id

Mandate id (mdt_...).

Request Body

application/json
  1. body
name?string|null
scope?|null
limits?|null
allowed?|null
chain_priority?array<unknown>|null
expires_at?|

Expiry time, ISO 8601 UTC.

notes?string|null
approvers?array<string>|null

Response Body

Success.

application/json
  1. response
mandate*

One mandate version. The agent-facing GET returns only id, version, status, limits, allowed, expires_at.

[key: string]?any