Sessions
A session is one linked WhatsApp number. Linking is easiest from the dashboard; these endpoints are for automating it.
List sessions
GET /session{
"data": [
{ "session": "sales", "status": "connected", "details": { "name": "Acme Store", "phoneNumber": "14155550100" } },
{ "session": "support", "status": "connecting", "details": { "name": "", "phoneNumber": "" } }
]
}status is connecting, connected or disconnected.
Start a session
POST /session/start
content-type: application/json
{ "session": "sales" }Returns the QR code to scan as a string. Turn it into an image with any QR library, or use the GET variant below.
{ "qr": "2@uGcdVWG80nTaAp6Vx7UZQIttVQLrq…" }If the session links without a QR code (it was linked before), the response is { "data": { "message": "Connected" } }. Starting a session that already exists fails with 400 Session already exist.
GET /session/start?session=sales&key=wag_your_keySame, but returns an HTML page with the QR code as an image. Handy to open in a browser.
Session details
GET /session/:session{
"success": true,
"data": {
"session": "sales",
"status": "connected",
"details": { "name": "Acme Store", "phoneNumber": "14155550100" },
"connection": { "isConnected": true, "lastUpdate": "2026-12-01T10:21:00.000Z" },
"metadata": { "platform": "smba", "deviceManufacturer": "unknown", "deviceModel": "unknown" }
}
}Unknown sessions return 404 with { "message": "Session 'sales' not found" }.
Delete a session
DELETE /session/:sessionLogs the linked device out on the phone and deletes the session's credentials and stored chats.
{
"success": true,
"message": "Session 'sales' deleted successfully",
"data": { "session": "sales", "deletedAt": "2026-12-01T10:21:00.000Z" }
}GET /session/logout?session=sales (or POST with { "session": "sales" }) does the same and returns { "data": "success" }. It's kept for v4 compatibility.