WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation allows revoking a previously sent message in a WhatsApp session using the WARest WhatsApp REST API. It is useful for scenarios where a message needs to be withdrawn or canceled after being sent, such as correcting mistakes or retracting sensitive information. For example, a user can revoke a message sent to a chat or recipient by specifying the session, recipient, and message ID.

Use Case Examples

  1. Revoke a mistakenly sent message in a customer support chat to prevent the recipient from seeing it.
  2. Withdraw a message containing incorrect information sent to a group chat.

Properties

Name Meaning
Session The WhatsApp session from which the message will be revoked. 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 recipient or chat where the message was sent. This identifies the target chat for the revoke action.
Message ID The unique identifier of the message to be revoked within the chat.
Additional Fields Optional parameters for the revoke action, 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 revoke the message, typically containing the result of the revoke operation.

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 or inactive session will cause the operation to fail.
  • Verify the recipient/chat ID and message ID are correct; incorrect IDs will result in errors or no action.
  • Check API credentials and network connectivity to the WARest server to avoid authentication or connection errors.
  • If the message has already been deleted or revoked, the operation may return an error or no effect.

Links

Discussion