WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation reconnects an existing WhatsApp session using the WARest WhatsApp REST API. It is useful when a session has been disconnected or lost and needs to be re-established without creating a new session. For example, if a WhatsApp session drops due to network issues, this operation can be used to reconnect it seamlessly.

Use Case Examples

  1. Reconnecting a WhatsApp session after a temporary network failure to resume message sending and receiving.
  2. Automatically reconnecting sessions in an automation workflow to maintain continuous WhatsApp communication.

Properties

Name Meaning
Session ID The identifier of the WhatsApp session to reconnect. It can be selected from a list of existing sessions or entered manually.

Output

JSON

  • json - The JSON response from the WARest API containing the result of the reconnect session operation, typically including session status and details.

Dependencies

  • Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.

Troubleshooting

  • If the session ID is invalid or the session does not exist, the node will throw an error indicating the operation is not implemented or the session is not found. Verify the session ID is correct and the session is active.
  • Network or authentication errors may occur if the API key or base URL is incorrect or the WARest server is unreachable. Check credentials and server status.
  • If the session is already connected, reconnecting may not have any effect or may return the current session state.

Links

  • WAREST GitHub Repository - Official repository for the WARest WhatsApp REST API, providing documentation and source code.

Discussion