Public endpoints
POST/v1/public/approvals/{token}/approve

Approve payment by link

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/public/approvals/{token}/approve" \  -H "Content-Type: application/json" \  -d '{"challenge_id":"cha_01jd2x3k4m5n6p7q8r9s0t1v2w","credential":{}}'

Approves from the one-time link: the passkey assertion identifies the approver, who must be a member allowed to decide this approval. Re-runs the policy, reserves budget and starts the payment.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/public/approvals/{token}/approveBase URL: https://api.52-28-238-205.sslip.io
Path
  • tokenstringrequired

    One-time approval token from the approval link. It is the only credential for this page.

Body

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

Policy decisionALLOW · DENY
The policy engine decides this call. The result carries the decision and a reason code; see reason codes.

Path Parameters

token*Token

One-time approval token from the approval link. It is the only credential for this page.

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
approval*
intent?|null
state*State
message?string|null
next_action?|

Plan approvals: 'wallet_step' when the approval is saved but the plan's wallet step failed; retry with POST /v1/plans/{plan_id}/wallet-step

next_action_error?|null
[key: string]?any