WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation deletes a WhatsApp group using the WARest WhatsApp REST API. It requires specifying a session and the group ID to identify which group to delete. This operation is useful for managing WhatsApp groups programmatically, such as removing obsolete or unwanted groups automatically within workflows.

Use Case Examples

  1. Automatically delete a WhatsApp group after an event ends.
  2. Remove groups that are no longer active or needed in a business communication setup.

Properties

Name Meaning
Session The WhatsApp session identifier to use for the API call. It can be selected from existing sessions or entered manually.
Group ID The unique identifier (JID) of the WhatsApp group to delete, typically ending with @g.us or a raw ID.

Output

JSON

  • json - The JSON response from the WARest API after attempting to delete the group, containing operation results or status.

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 active; invalid or expired sessions will cause errors.
  • Verify the group ID is correct and the bot or session has permissions to delete the group.
  • Common errors include 'Operation not implemented' if the operation name is incorrect, or API errors if the group does not exist or cannot be deleted due to permissions.

Links

Discussion