---
title: Disconnections
slug: disconnections
docTags: 
createdAt: 2025-08-18T15:02:46.681Z
---

## Introduction

The **WhatsApp Disconnection Webhook** feature allows sending a real-time notification to an external platform whenever a WhatsApp account is **disconnected, logged out, or loses its active session**.

This functionality is designed for **monitoring account health and availability**, ensuring that teams are immediately alerted when a WhatsApp number goes offline and can take corrective action (re-login, reassignment, or escalation).

This is **not a messaging or AI feature**; it is strictly a **webhook-based notification system** triggered by a WhatsApp session disconnection event.

## Configuration Location

The disconnection webhook is configured at **number level in Sub-Account panel**:

- Navigate to **WhatsApp Numbers**&#x20;
- Select the **specific WhatsApp number**&#x20;
- Open **Settings**&#x20;
- Go to **Disconnection Settings**&#x20;
- Enable **Disconnected** event&#x20;
- Paste the **Webhook URL**&#x20;
- Save changes&#x20;

Each number must be configured **independently**.



::Image[]{src="https://api.archbee.com/api/optimize/srzEvL3tK0Cgq-VfwOzrO/Eh9GV3ETLXn212cOA0Mli_image.png" size="24" width="110" height="103" position="center" showCaption="false"}

## Trigger

Webhook event that can be configured:

- **Session Disconnected** → Triggered when the WhatsApp account logs out, loses session, or is disconnected from the system.&#x20;

## Webhook Payload

Each webhook request will include basic identification data for the disconnected account, such as:

- **WhatsApp Account / Phone Number**&#x20;
- **Country** (if applicable)&#x20;
- **Event Type:** Disconnection / Logout&#x20;

*(Exact fields may vary depending on platform version; workflows should be tolerant to minimal payloads.)*

**

::Image[]{src="https://api.archbee.com/api/optimize/srzEvL3tK0Cgq-VfwOzrO/IxJXhFFdpJOvZDZ-xsEpu_image.png" size="66" width="501" height="263" position="center" showCaption="false"}

## How It Works

1. A WhatsApp account is disconnected (manual logout, expired session, device change, or system issue).&#x20;
2. **Wazzap.mx** immediately sends an HTTP request to the configured **Disconnection Webhook URL**.&#x20;
3. The webhook must be created in an automation platform such as:&#x20;
   - GoHighLevel (GHL)&#x20;
   - Zapier&#x20;
   - Pabbly&#x20;
   - n8n&#x20;
4. The external platform receives the webhook and executes predefined actions (alerts, logs, tasks, or workflows).&#x20;

## Testing the Disconnection Webhook

To test this functionality:

1. Create an **Inbound Webhook** in GoHighLevel (or your automation platform).&#x20;
2. Copy the webhook URL.&#x20;
3. Paste the URL into the **Disconnection Settings → Webhook URL** field.&#x20;
4. Save changes.&#x20;
5. Manually **log out or disconnect the WhatsApp account**.&#x20;
6. Confirm that the inbound webhook is triggered and received.&#x20;

⚠️ **Important:**
&#x20;The webhook will only fire after a **real disconnection event** occurs.

## HighLevel (GHL) Integration

In [Highlevel CRM Integration](docId\:qH5M7bG-7rf8ySjWwpjXm), the disconnection webhook is implemented using an **Inbound Webhook Trigger**.

This feature is considered a **premium action** by HighLevel and may incur additional costs. Please verify pricing in the official HighLevel documentation.

### Recommended Flow in HighLevel

1. **Trigger – Inbound Webhook**
   &#x20;Activated when Wazzap.mx sends the disconnection event.&#x20;
2. **Identify Account / Phone**
   &#x20;Match the incoming phone number or WhatsApp identifier.&#x20;
3. **Update Status**&#x20;
   - Mark WhatsApp account as **Disconnected / Offline**&#x20;
   - Optionally tag the account (e.g., WA\_Disconnected)&#x20;
4. **Notification Actions (Optional)**&#x20;
   - Send internal Slack / Email / SMS alert&#x20;
   - Create a task for reconnection&#x20;
   - Notify the assigned agent or admin&#x20;

## Example (HighLevel WhatsApp Disconnection)

A WhatsApp account is logged out due to session expiration.

**Wazzap.mx sends a webhook to HighLevel containing:**

- Phone: +521XXXXXXXXXX&#x20;
- Country: MX&#x20;
- Event: Disconnected&#x20;

**HighLevel processes the webhook:**

- Identifies the WhatsApp account&#x20;
- Updates status to *Disconnected*&#x20;
- Sends an internal alert to the operations team&#x20;
- Optionally creates a task to reconnect the account&#x20;

## Result

- WhatsApp disconnections are detected **in real time**.&#x20;
- Teams are immediately notified when an account goes offline.&#x20;
- Downtime is reduced by faster response and reconnection.&#x20;
- Operational visibility and system reliability are improved.&#x20;

## ⚠️ Important Notes

- This feature **does not send messages**; it only reports session disconnections.&#x20;
- Webhooks trigger **only on real logout or disconnection events**.&#x20;
- Always test using a real WhatsApp logout.&#x20;
- Configure the webhook in a **secure automation platform** (HighLevel, Zapier, Pabbly, n8n).&#x20;
- Design workflows to handle minimal payload data gracefully.





