Skip to main content
POST
Submit passkey assertion

Authorizations

X-Api-Key
string
header
required

Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.

Headers

X-Instance-Id
string
default:{{instanceId}}
required

The ID of the WhatsApp instance to use

Body

application/json

WebAuthn assertion as produced by PublicKeyCredential.toJSON() in the browser. Binary fields are base64url-encoded.

rawId
string
required

Raw credential ID (base64url)

response
object
required
id
string

Credential ID

type
string
Example:

"public-key"

Response

Assertion forwarded to WhatsApp

status
enum<string>
required

Current passkey verification state

Available options:
none,
required,
submitted,
confirmation_required,
error
source
enum<string>

Where the challenge came from: notification (WhatsApp pushed it after the QR scan or pair code) or requested (fetched via POST /session/passkey/request, which usually leads to confirmation_required). Omitted when no step is in progress.

Available options:
notification,
requested
challenge
object

WebAuthn PublicKeyCredentialRequestOptionsJSON sent by WhatsApp, with binary fields base64url-encoded (accepted by PublicKeyCredential.parseRequestOptionsFromJSON). Pass it to navigator.credentials.get() on origin. Only set while status is required.

origin
string

Origin the challenge must be signed on. Only set while status is required.

Example:

"https://web.whatsapp.com"

confirmationCode
string

Code to show the user while status is confirmation_required. They must check it matches the code on their phone and approve the link there.

confirmationSent
boolean

true once the confirmation has been sent to WhatsApp (sent automatically when status becomes confirmation_required). Omitted until then.

error
string

Failure reason when status is error

requestedAt
string<date-time>

When WhatsApp requested the passkey verification

expiresAt
string<date-time>

When the step expires (5 minutes after requestedAt)