Wasup icon

Wasup

Send WhatsApp messages and manage instances via the Wasup API

Connection → Disconnect

AI-generated

Summary

Closes the live WhatsApp session for a Wasup instance, keeping saved credentials by default, or optionally revoking the linked device on WhatsApp's servers.

Inputs

  • instanceId (required) — The WhatsApp instance to disconnect. Pick it from a searchable list of instances, or enter its ID directly (e.g. wa_lxyz123_abc45).
  • revoke — Boolean, default false. When on, the device is also revoked on WhatsApp servers. When off, credentials are kept so the instance can reconnect without a new QR or pairing code.

Output shape

One output item per input item, containing the JSON response from the Wasup API's POST /api/instances/{id}/disconnect endpoint.

The node does not define the response fields, so they depend on the Wasup server. With 'Continue on Fail' enabled, a failed item returns {error: message} instead of stopping the workflow. The node runs once for each input item.

Examples

Example 1: Temporarily take an instance offline and reconnect it later without re-scanning a QR code.

Resource: Connection, Operation: Disconnect, Instance: select from list, Revoke Session: off.

Example 2: Permanently unlink a number's device from WhatsApp during decommissioning.

Resource: Connection, Operation: Disconnect, Instance: by ID, Revoke Session: on.

Links

Discussion