WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node interacts with the WARest WhatsApp REST API to list all active WhatsApp sessions. It is useful for scenarios where you need to retrieve and manage multiple WhatsApp sessions programmatically, such as monitoring session statuses or integrating session data into workflows.

Use Case Examples

  1. Retrieve a list of all WhatsApp sessions to display their status and IDs.
  2. Use the session list to select a session for further operations like sending messages or managing contacts.

Output

JSON

  • json - An array of session objects, each containing details such as session ID, status, and optional descriptive fields like name or pushName.

Dependencies

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

Troubleshooting

  • Ensure the API credentials (base URL and API key) are correctly configured; otherwise, the node will fail to retrieve sessions.
  • If the node throws an error stating the operation is not implemented, verify that the resource is set to 'Sessions' and the operation to 'List Sessions'.
  • Network connectivity issues to the WARest server can cause request failures; check server availability and network settings.

Links

  • WARest GitHub Repository - Official repository for the WARest WhatsApp REST API, providing documentation and source code.

Discussion