Instances

Disconnect device session

Disconnects the WUTS device from WhatsApp and fires the device-disconnected webhook. The stored credentials are preserved, so the device can later reconnect via POST /connect without re-pairing.

POST
/disconnect

Disconnects the WUTS device from WhatsApp and fires the device-disconnected webhook. The stored credentials are preserved, so the device can later reconnect via POST /connect without re-pairing.

Authorization

bearerAuth
AuthorizationBearer <token>

Per-user API token (UUID v4) sent as Authorization: Bearer <token>. Identifies the tenant and user.

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/disconnect"
{  "success": true,  "data": {    "message": "device disconnected successfully",    "device_id": "wuts-device-001"  }}
{  "success": false,  "error": "unauthorized"}
{  "success": false,  "error": "device not found or not connected"}
{  "success": false,  "error": "failed to disconnect device"}