Start payment approval
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.
https://api.52-28-238-205.sslip.ioAuthorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
approval_idstringrequiredApproval id (apr_...).
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.uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
approval_id*Approval IdApproval id (apr_...).
Success.
application/json- response
challenge_id*Challenge IdId of the passkey challenge returned by the matching options call.
challenge*ChallengeMessage to sign with the payTo address key to prove control of it.
timeout?integer|nullrpId?string|nullallowCredentials?array<>|nulluserVerification?string|nullclosed_mandate*closed_mandate_hash*Closed Mandate Hash[key: string]?anyGETGet approval
Returns one approval with its payment intent, merchant, reason, expiry countdown and the budget after this payment. Callable with a console session or an API key holding approval:decide; a team approver can open only its own team's approvals.
POSTApprove payment
Verifies the passkey assertion over the closed mandate, re-runs the policy, reserves budget and starts the payment. Requires approval:decide and a passkey whose owner may decide this approval; an approval already decided or expired returns its final state instead of paying again.