WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node handles session management for a service, specifically providing the ability to log out from a session. It is useful in scenarios where users need to programmatically terminate active sessions, such as for security purposes, session cleanup, or managing user access in automated workflows. For example, after completing a task that requires authentication, the node can log out the session to prevent unauthorized use.

Use Case Examples

  1. Logging out a user session after completing a data synchronization task.
  2. Terminating sessions automatically after a period of inactivity to enhance security.

Properties

Name Meaning
Session The name of the session to log out from. This is a required string input that identifies which session to terminate.
Request Options Additional HTTP request options to customize the logout request, including batching, SSL certificate handling, proxy settings, and timeout configuration.

Output

JSON

  • success - Indicates whether the logout operation was successful.
  • message - Provides additional information or status message about the logout operation.

Dependencies

  • Requires an API authentication token or session credentials to authorize the logout request.

Troubleshooting

  • If the session name is incorrect or does not exist, the node may return an error indicating the session could not be found.
  • Timeout errors may occur if the server does not respond within the specified timeout period; increasing the timeout or checking network connectivity can help.
  • SSL certificate validation errors can be bypassed by enabling the 'Ignore SSL Issues' option, but this should be used cautiously in production environments.

Discussion