Approvals
POST/v1/approvals/{approval_id}/approve/options

Start payment approval

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/approvals/{approval_id}/approve/options" \  -H "Cookie: <console session cookie>"

Builds the AP2 closed mandate for this purchase and returns the passkey request that signs it. Callable with a console session or an API key holding approval:decide; send the signed result to the approve operation before the approval expires.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/approvals/{approval_id}/approve/optionsBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • approval_idstringrequired

    Approval id (apr_...).

Requires permissionapproval:decide
Held by owner, admin (with a grant), finance (with a grant), approver (own team). 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

approval_id*Approval Id

Approval id (apr_...).

Response Body

Success.

application/json
  1. response
challenge_id*Challenge Id

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

challenge*Challenge

Message to sign with the payTo address key to prove control of it.

timeout?integer|null
rpId?string|null
allowCredentials?array<>|null
userVerification?string|null
closed_mandate*
closed_mandate_hash*Closed Mandate Hash
[key: string]?any