whatsapp_alt traffic flows through the number.
The
/v1/whatsapp-alt/* endpoints require the WhatsApp Alternative feature to be enabled for your team and are not available with test-mode API keys.Session lifecycle
| Status | Meaning |
|---|---|
initializing | Session created, the connection is starting. |
qr_ready | qrCode is available — scan it from the phone to link. |
authenticating | QR scanned, handshaking. |
ready | Linked and connected. You can send and receive. |
disconnected | Unlinked or dropped (Zavu reconnects automatically when possible). |
failed | Could not connect (see lastError). |
1. Create a session
initializing. The QR is generated asynchronously — poll the session until qrCode appears.
By default the session egresses through the managed Zavu residential proxy, geo-matched to the number’s country. To route it through your own Android device instead, pass an egress object — see Egress & Fallback.
2. Poll for the QR code
status is qr_ready. The qrCode field is the QR payload — render it as a QR image. It rotates until scanned, so keep polling and re-render when it changes.
3. Scan from the phone
On the phone, open WhatsApp → Linked devices → Link a device, then scan the QR. The session moves throughauthenticating to ready, and phoneNumber and pushName are populated.
4. Link the session to a sender
Attach the ready session to a sender so its outboundwhatsapp_alt messages route through this number and inbound messages are attributed to it.
POST /v1/whatsapp-alt/sessions/{sessionId}/unlink.
Managing a session
| Action | Endpoint | Notes |
|---|---|---|
| List | GET /v1/whatsapp-alt/sessions | Paginated. |
| Get | GET /v1/whatsapp-alt/sessions/{id} | Live status + qrCode while linking. |
| Reconnect | POST /v1/whatsapp-alt/sessions/{id}/reconnect | Re-initialize after failed/disconnected; reconnects without a new QR if credentials are still valid. |
| Log out | POST /v1/whatsapp-alt/sessions/{id}/logout | Clears credentials; the device disappears from the phone’s Linked devices. The session row is kept — reconnect to link again with a fresh QR. |
| Delete | DELETE /v1/whatsapp-alt/sessions/{id} | Deletes the session, unlinks its senders, and logs the device out. |
Next steps
Egress & Fallback
Choose how the number reaches WhatsApp and keep it 100% active.
Sending & Receiving
Send on the
whatsapp_alt channel and handle inbound webhooks.