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.
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 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"}Disconnect a device DELETE
Disconnects the WUTS device's WhatsApp client and marks it as offline. The device must belong to the authenticated user; ownership is enforced before any action.
Generate phone pairing code POST
Generates an 8-character WhatsApp pairing code so the WUTS device can be linked by entering it on the phone instead of scanning a QR. Returns a cached code while it is still valid unless a refresh is requested.