WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation updates the configuration of an existing WhatsApp session using the WARest WhatsApp REST API. It allows users to modify session settings such as webhook URL, webhook secret, and whether to trigger a preflight call before saving the configuration. This operation is useful for managing session behavior and integrating webhook callbacks for real-time updates.

Use Case Examples

  1. Updating the webhook URL and secret for a session to receive event callbacks.
  2. Enabling a preflight check before applying new session configuration settings.

Properties

Name Meaning
Session ID Identifier of the WhatsApp session to update. Can be selected from a list or entered manually.
Webhook URL HTTPS URL to receive webhook callbacks for the session.
Webhook Secret Shared secret used for signing webhook callbacks to verify authenticity.
Preflight Boolean flag to trigger a preflight call before saving the session configuration.

Output

JSON

  • json - The updated session configuration response from the WARest API

Dependencies

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

Troubleshooting

  • Ensure the session ID is valid and corresponds to an active session.
  • Verify that the webhook URL is a valid HTTPS endpoint to receive callbacks.
  • If the preflight option is enabled, ensure the preflight call succeeds to avoid configuration save failures.
  • Common error messages include invalid session ID, unauthorized API access due to missing or incorrect API key, and invalid webhook URL format.

Links

Discussion