WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Session → Get Current Session Status

AI-generated

Overview

This node operation retrieves the current status of a specified WhatsApp session using the WasenderAPI. It is useful for monitoring the connection state and health of a session, such as whether it is connected, disconnected, or in another state. This can help users automate workflows that depend on session availability or troubleshoot session issues.

Use Case Examples

  1. Check if a WhatsApp session is active before sending messages.
  2. Monitor session status to trigger alerts or automated reconnection attempts.

Properties

Name Meaning
Session The ID of the WhatsApp session to get the status for. It can be selected from a list or provided by ID. If not provided, the node attempts to use a session ID from the incoming item data.
Auto Selected Session ID Automatically uses the session ID from the incoming item if available, unless another session is explicitly selected.
Has Auto Selected Session Indicates whether a session ID was automatically selected from the incoming item data.
Options Additional request options such as retry behavior and maximum retry attempts for the API request.

Output

JSON

  • status - The current status information of the WhatsApp session returned by the API.

Dependencies

  • WasenderAPI service with appropriate API key credentials

Troubleshooting

  • Ensure the session ID is correctly provided or available in the incoming item data; otherwise, the node will throw an error indicating a session is required.
  • If the API request fails, check network connectivity and WasenderAPI service status.
  • If retries are enabled, the node will attempt to resend requests on transient errors; adjust retry settings if needed.

Links

Discussion