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

Sign mandate version

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/mandates/{id}/versions/{version}/sign" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"challenge_id":"cha_01jd2x3k4m5n6p7q8r9s0t1v2w","credential":{}}'

Verifies the passkey assertion over the version hash, activates the version, supersedes the previous one and applies its per-agent budget. Console session with mandate:sign; only a draft can be signed (409).

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

    Mandate id (mdt_...).

  • versionstringrequired

    Draft version number.

Body

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

Authorization

session
cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

id*Id

Mandate id (mdt_...).

version*Version

Draft version number.

Request Body

application/json
  1. body
challenge_id*Challenge Id

Id of the passkey challenge returned by the matching options call.

credential*

The passkey assertion (WebAuthn) produced for the challenge.

Response Body

Success.

application/json
  1. response
mandate*

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

superseded_version?integer|null
[key: string]?any