Skip to main content
POST
Request passkey challenge

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

Response

Pending passkey challenge

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)