WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation deletes a specific message in a WhatsApp session using the WARest WhatsApp REST API. It is useful for automating message management tasks such as removing unwanted or erroneous messages from chats. For example, it can be used in workflows to automatically delete messages based on certain triggers or conditions.

Use Case Examples

  1. Automatically delete a message after a certain time period.
  2. Remove messages containing sensitive information from a chat.

Properties

Name Meaning
Session The WhatsApp session from which the message will be deleted. This can be selected from a list of active sessions or entered manually as a session ID.
Recipient / Chat (to) The phone number or JID of the chat or recipient where the message to be deleted is located. It can be a single or comma-separated list of recipients.
Message ID The unique identifier of the message to be deleted within the chat.
Additional Fields Optional parameters for the delete operation, including whether to delete the media blob associated with the message and whether to delete the message for the current account as well.

Output

JSON

  • json - The response from the WARest API after attempting to delete the message, typically indicating success or failure.

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; an invalid session will cause the operation to fail.
  • Verify the message ID is correct and exists in the specified chat; otherwise, the delete operation will not succeed.
  • Check API credentials and network connectivity to the WARest server to avoid authentication or connection errors.

Links

Discussion