Actions20
- Session Actions
- Message Actions
- Contact Actions
- Typing Actions
- Webhook Actions
Overview
The Disconnect operation of the WhatsApp Multi-Session node allows users to disconnect an active WhatsApp session using its unique session ID. This functionality is particularly useful in scenarios where a user needs to terminate a session for security reasons, manage multiple sessions effectively, or simply log out from a device. For example, if a user has logged into WhatsApp on multiple devices and wants to ensure that one of them is no longer connected, they can use this operation to disconnect that specific session.
Properties
| Name | Meaning |
|---|---|
| Session ID | The WhatsApp session ID (e.g., session_123) required to identify which session to disconnect. |
Output
The output of the Disconnect operation typically includes a JSON response indicating the success or failure of the disconnection request. The structure may include fields such as:
success: A boolean indicating whether the disconnection was successful.message: A message providing additional information about the operation's result.
If the operation fails, the output may also contain error details.
Dependencies
To use this node, you need:
- An API key credential for authenticating requests to the WhatsApp Multi-Session API.
- Access to the WhatsApp Multi-Session API endpoint, which requires proper configuration of the server URL and API key.
Troubleshooting
Common issues users might encounter include:
- Invalid Session ID: If the provided session ID does not exist or is incorrect, the node may return an error indicating that the session could not be found. Ensure that the session ID is valid and corresponds to an active session.
- Authentication Errors: If the API key is invalid or missing, the node will fail to authenticate with the WhatsApp API. Verify that the correct API key is being used and that it has the necessary permissions.
- Network Issues: Users may experience connectivity problems that prevent the node from reaching the WhatsApp API. Check network settings and ensure that the API endpoint is accessible.
Links and References
- WhatsApp Multi-Session API Documentation (replace with actual documentation link)
- n8n Documentation for general usage and troubleshooting tips.