Create a WhatsApp Session (QR / Pairing Login)
View All WhatsApp Messaging API APIs →Start logging in to your WhatsApp account and obtain the sessionId used by every other endpoint. There are two login modes — pick one and send its JSON body below, then poll Get Session Status until status reads CONNECTED. QR login (recommended). Body: {"mode":"qr","deviceName":"My Bot"}. The status response carries a scannable qrImage (base64 data-URI) and a qrPageUrl you can open to watch login live. On your phone: WhatsApp → Settings → Linked Devices → Link a device, then scan the QR. Pairing-code login. Body: {"mode":"pairing","phoneNumber":"8613800138000","deviceName":"My Bot"}. phoneNumber is your full international number, digits only, no + and no spaces. The status response then returns an 8-character pairingCode. On your phone: WhatsApp → Settings → Linked Devices → Link a device → Link with phone number instead, and type the code. After connecting, the sessionId becomes a stable ID derived from the device, reusable across restarts. deviceName sets the label shown under WhatsApp's Linked Devices.
API Features
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
/api/project/whatsapp-messaging/create-session API Response (JSON)
{} Query Result
Use Cases
- Bootstrap a WhatsApp bot or automation by linking an authorized account
- Onboard users into a support channel with a scan-to-connect flow
- Re-link a dropped connection to resume sending and receiving messages