Public endpoints
POST/v1/public/consent/{token}/complete

Complete consent

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

Verifies the passkey signature over the drafted mandate, activates it, sets the capped spending permission on the consumer's wallet and returns the redirect URL with mandate_id. Anyone holding a pending consent token; rate limited to 30 requests per minute per IP.

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

    One-time consent token from the link the platform sent the consumer (valid 24 hours).

Body

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

Path Parameters

token*Token

One-time consent token from the link the platform sent the consumer (valid 24 hours).

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
redirect_url*Redirect Url

Platform URL the consumer returns to after consent, with status (and mandate_id on success).

mandate_id*Mandate Id

Mandate id (mdt_...).

status*Status

Current state; the allowed values and moves are in the state machines reference.

delegation?|null
funding?|null
[key: string]?any