Auth
Session authentication (QR, pairing code, captcha)
Get a QR code for linking your session. STOPPED and FAILED sessions are recovered automatically. The default response wraps the engine QR object (including its data field) in data; format=binary returns image/png when QR data is available. A connected session returns 409; use it without linking again.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
session*stringWhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= length <= 100format?stringResponse format: "binary" returns PNG image, "base64" returns JSON with base64 data (default)
"base64""binary""base64"Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/me/auth/qr'{ "success": true, "data": { "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB" }, "timestamp": "2026-11-02T00:00:00.000Z"}Request a phone-number pairing code for your session. Supply 10–15 digits including the country code, without + or spaces, then enter the returned code in WhatsApp Linked Devices. STOPPED and FAILED sessions recover automatically. An already connected session returns 409.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
session*stringWhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= length <= 100Phone number for session authorization
application/json- body
Phone number for session authorization
phoneNumber*stringPhone number (10-15 digits)
^\d{10,15}$Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/me/auth/pairing-code' \ -H 'Content-Type: application/json' \ -d '{ "phoneNumber": "15551234567"}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Use when your session status is PASSKEY_REQUIRED. Returns the WebAuthn challenge (challenge, rpId, allowCredentials, userVerification, timeout). It must be signed in a browser on web.whatsapp.com, which the WhatsApp browser extension does for you. Returns 422 when no challenge is pending.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
session*stringWhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= length <= 100Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/me/auth/passkey/challenge'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Send the signed WebAuthn assertion exactly as returned by credential.toJSON(). Most sessions then move to WORKING; poll getSession to confirm. If the status becomes PASSKEY_CONFIRMATION_REQUIRED, continue with getPasskeyConfirmation.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
session*stringWhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= length <= 100WebAuthn assertion exactly as returned by credential.toJSON() on web.whatsapp.com
application/json- body
WebAuthn assertion exactly as returned by credential.toJSON() on web.whatsapp.com
id*string1 <= lengthrawId*string1 <= lengthtype*"public-key""public-key"response*[key: string]?unknownInvalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/me/auth/passkey' \ -H 'Content-Type: application/json' \ -d '{ "id": "AbCdEf0123456789_credential_id", "rawId": "AbCdEf0123456789_credential_id", "type": "public-key", "response": { "clientDataJSON": "eyJ0eXBlIjoid2ViYXV0aG4uZ2V0In0", "authenticatorData": "SZYN5YgOjGh0NBcPZHZgW4_krrmihjLHmVzzuoMdl2M", "signature": "MEUCIQDexampleSignature", "userHandle": null }}'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Use only when your session status is PASSKEY_CONFIRMATION_REQUIRED. Returns a 4-digit code to compare with the code shown on your phone.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
session*stringWhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= length <= 100Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X GET 'https://wp-rapidapi.retentionstack.agency/v1/me/auth/passkey/confirmation'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}Call after you confirm the 4-digit code matches your phone. The session then continues linking; poll getSession until it is WORKING.
BearerAuthAuthorizationBearer <ch_live_... | ak_live_...>Direct WhatsApp Session Token (Authorization: Bearer ch_live_...) or Account API Key (ak_live_...). Generated in your dashboard at https://whatsapp-messaging.retentionstack.agency/start.
session*stringWhatsApp session name (1-100 characters). With a session token (ch_live_...), me targets that token's session; with an account key, use the session name.
1 <= length <= 100Invalid request or session not ready. Inspect error.details for validation issues, currentStatus, nextSteps or nextStep; link WhatsApp before sending.
application/json- response
success*falsefalseerror*timestamp*stringdate-timecurl -X POST 'https://wp-rapidapi.retentionstack.agency/v1/me/auth/passkey/confirm'{ "success": true, "data": {}, "timestamp": "2026-11-02T00:00:00.000Z"}