SuperdindaDocs
Consents

Answer WhatsApp's number check (public)

POST
/consent-requests/{token}/pairing/passkey

When challenge.kind is passkey_confirm: does the number WhatsApp shows match? false ends the pairing (failure: passkey_refused) — a mismatch means another device is being linked.

Path Parameters

token*string

the opaque token from the link

Length16 <= length <= 4096

Request Body

application/json
  1. body
matches*boolean

true when the number on the dependent's phone is the one we showed; false ends the pairing, because a mismatch means another device is being linked

Response Body

The pairing as this page shows it

application/json
  1. response
success*true
Value intrue
data*
Example Request
curl -X POST 'http://localhost:3000/consent-requests/stringstringstri/pairing/passkey' \  -H 'Content-Type: application/json' \  -d '{  "matches": true}'
Example Response
{  "success": true,  "data": {    "phoneMasked": "string",    "pairing": {      "status": "starting",      "method": "qr",      "challengeShownTo": "guardian",      "challenge": {        "kind": "code",        "code": "string",        "expiresAt": "2019-08-24T14:15:22Z"      },      "failure": "expired",      "pairedAt": "2019-08-24T14:15:22Z",      "endedAt": "2019-08-24T14:15:22Z"    }  }}