Skip to content

Alert when a WhatsApp number disconnects

A linked number can be logged out by the phone. Until someone links it again nothing is received or sent, so anything that runs unattended needs this alert.

What it does

WhatSync sends connection.disconnected when a number needs a person: the phone logged the linked device out, or a Business number lost its connection. Short reconnects that heal by themselves do not send it.

connection.disconnected
{
  "id": "evt_01J9XK2Q8V7Y3M4N5P6R7S8T9U",
  "type": "connection.disconnected",
  "created_at": "2026-10-08T09:41:12.512Z",
  "api_version": "2026-10-01",
  "account_id": "conn_example",
  "data": {
    "channel": "qr",
    "phone": "15550000001",
    "reason": "logged_out",
    "action_needed": "scan_qr",
    "dashboard_url": "https://whatsync.app/dashboard"
  }
}
The alert
WhatsApp number +15550000001 is disconnected (logged_out). Nothing is received or sent until it is back. Link it again here: https://whatsync.app/dashboard

When the number is linked again, connection.connected arrives and the workflow posts "connected again".

Set it up

New to n8n with WhatSync? Do the one-time setup in WhatsApp workflows in n8n first: the API key credential, importing, the webhook and the signing secret.

  • n8n: alert when WhatsApp disconnects

    Built-in nodes only.

    Download JSON
  1. Import the workflow and put your alert address in Settings.
  2. Publish and copy the Webhook node's Production URL.
  3. In WhatSync Developers add a webhook with that URL and the events connection.disconnected and connection.connected. Paste its signing secret into Verify signature.

A Slack incoming webhook address works as is: the workflow posts {"text": "..."} to it. For email or Telegram, replace the alert node with that node and map the same text.

While a number is disconnected, sends answer 409 whatsapp_not_connected, and safe send reports that to a person as well. After relinking, read the chats yourself: messages that arrived while the number was disconnected may not all come through as events.

Tested on n8n 2.49 with real signed events: one alert for a disconnect, none for the same event delivered twice, and one note when the number connected again.