WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Account → Restart Whatsapp Session

AI-generated

Overview

This node operation restarts a WhatsApp session using the WasenderAPI. It is useful for managing WhatsApp sessions programmatically, especially when a session needs to be refreshed or reset without manual intervention. For example, if a WhatsApp session becomes unresponsive or disconnected, this operation can be triggered to restart the session and restore connectivity.

Use Case Examples

  1. Restart a specific WhatsApp session by selecting it from a list or providing its ID.
  2. Automatically retry the restart operation on failure with configurable retry attempts.

Properties

Name Meaning
Session The WhatsApp session to restart, selectable either from a list of existing sessions or by specifying the session ID.
Options Additional request options for the restart operation, including retry behavior and maximum retry attempts.

Output

Binary

The node can output a QR code image as binary data if the restart operation returns a QR code for session connection.

JSON

  • json - The JSON response from the WasenderAPI after restarting the WhatsApp session, containing session details or status.
  • binary
    • data - Binary data of the QR code image if applicable, useful for scanning to reconnect the session.

Dependencies

  • Requires WasenderAPI credentials for authentication to perform session management operations.

Troubleshooting

  • Ensure the session ID or selected session is valid and exists; otherwise, the operation will fail.
  • If the API returns errors like 408, 429, 500, 502, or 503, the node can retry based on configured options; adjust retry settings if persistent failures occur.
  • Check that the WasenderAPI credentials are correctly configured and have the necessary permissions to manage sessions.

Discussion