Skip to content

Sessions ​

A session is one linked WhatsApp number. You can link as many as you need; each has an ID that you pass as session in API calls.

Sessions page

Linking a number ​

Sessions → Add session, enter an ID and choose a method:

MethodOn the phone
QR codeWhatsApp → Settings → Linked devices → Link a device, then scan.
Pairing codeEnter the number in the dialog. On the phone: Linked devices → Link a device → Link with phone number instead, and type the code.

Session IDs may contain letters, numbers, - and _ (spaces are turned into _ as you type).

Linking with a QR code

  • The QR code refreshes automatically: the first one lives 60 seconds, the next ones 20 seconds. The counter shows when the next one comes.
  • After about 2½ minutes without a scan, WhatsApp stops issuing codes and the session is removed. Click Generate new QR (or Get a new code) to start over with the same ID.
  • Once linked, the last HISTORY_SYNC_DAYS days of chats are imported into the inbox.

You can also start a session from the API with POST /session/start, which returns the QR code as a string.

Status ​

StatusMeaning
ConnectedLinked and online. Messages can be sent and received.
ConnectingWaiting for a scan, or reconnecting after a network problem. Reconnects happen automatically, with increasing delays up to one minute.
DisconnectedLogged out. The session is removed.

Every status change is sent to webhooks subscribed to session.status.

Unlinking ​

Click Delete on a session card (or call DELETE /session/:session). This logs the device out on the phone and deletes the session's credentials and its stored chats.

A session is also removed when you remove the linked device from the phone (Linked devices → tap the device → Log out).

Keep the phone online occasionally

Linked devices keep working while the phone is offline, but WhatsApp logs out devices of phones that stay offline for about 14 days.

Uses the unofficial WhatsApp Web protocol. Not affiliated with WhatsApp or Meta.