Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Instance → Logout Session

AI-generated

Summary

Logs out the current WhatsApp session by sending purgeAuth and reconnect settings to the wa-instance API. Use the defaults to purge authentication data and reconnect; turn either option off to change that behavior.

Inputs

  • Purge Auth — Whether to purge authentication data during logout. Defaults to true.
  • Reconnect — Whether to reconnect after logout. Defaults to true.

Output shape

A single API response record as an n8n item.

The node sends a POST request to /session/logout using the configured API credential. The response fields depend on the backend.

Examples

Example 1: Standard logout

Keep both options enabled to purge auth and request reconnection.

Example 2: Log out without purging auth

Disable Purge Auth; Reconnect remains enabled by default.

Links

Discussion