WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Account → Update Whatsapp Session

AI-generated

Overview

This node operation updates an existing WhatsApp session in the WasenderAPI system. It allows users to modify session details such as session name, phone number, account protection settings, message logging preferences, webhook configurations, and other session-specific options. This operation is useful for managing and maintaining WhatsApp sessions dynamically, for example, updating webhook URLs or toggling account protection without creating a new session.

Use Case Examples

  1. Updating the session name and phone number for an existing WhatsApp session.
  2. Enabling or disabling webhook events for a session to control incoming message notifications.
  3. Changing account protection and message logging settings to enhance security and monitoring.

Properties

Name Meaning
Session The identifier of the WhatsApp session to update, selectable from a list or by ID.
Name The new name to assign to the WhatsApp session.
Phone Number The international phone number associated with the WhatsApp session.
Account Protection Toggle to enable or disable account protection for the session.
Log Messages Toggle to enable or disable logging of messages for the session.
Read Incoming Messages Toggle to enable or disable automatic reading of incoming messages.
Webhook Enabled Toggle to enable or disable webhook integration for the session.
Webhook URL The URL to which webhook events will be sent.
Webhook Events A JSON array specifying which webhook event names to listen for.
Auto Reject Calls Toggle to automatically reject incoming calls on the session.
Always Online Toggle to keep the session always online.
Ignore Groups Toggle to ignore group messages in the session.
Ignore Broadcasts Toggle to ignore broadcast messages in the session.
Ignore Channels Toggle to ignore channel messages in the session.
Proxy URL The proxy URL to route session traffic through.
Options Additional request options such as retry behavior and maximum retry attempts.

Output

JSON

  • id - The unique identifier of the updated WhatsApp session.
  • name - The updated name of the WhatsApp session.
  • phone_number - The updated phone number associated with the session.
  • account_protection - Indicates if account protection is enabled.
  • log_messages - Indicates if message logging is enabled.
  • read_incoming_messages - Indicates if incoming messages are automatically read.
  • webhook_enabled - Indicates if webhook integration is enabled.
  • webhook_url - The webhook URL set for the session.
  • webhook_events - The list of webhook events the session listens to.
  • auto_reject_calls - Indicates if incoming calls are automatically rejected.
  • always_online - Indicates if the session is kept always online.
  • ignore_groups - Indicates if group messages are ignored.
  • ignore_broadcasts - Indicates if broadcast messages are ignored.
  • ignore_channels - Indicates if channel messages are ignored.
  • proxy_url - The proxy URL used for the session.

Dependencies

  • WasenderAPI service with API key credential

Troubleshooting

  • Ensure the session ID is valid and exists before attempting to update.
  • Verify that the webhook URL is correctly formatted and accessible if webhook integration is enabled.
  • Check API key credentials and permissions for WasenderAPI to avoid authorization errors.
  • If the node throws errors about invalid JSON, verify the format of JSON input fields such as webhook events.
  • Network issues or proxy misconfiguration can cause request failures; verify proxy URL and network connectivity.

Links

Discussion