Actions90
- Sessions Actions
- Messages - Sending Actions
- Chats Actions
- Messages - Actions Actions
- Groups Actions
- List Groups
- Group Info
- Get Invite Link
- Revoke Invite Link
- Join via Link
- Preview via Link
- Create Group
- Delete Group
- Update Group Description
- Toggle Announcement Mode
- List Participants
- Add Participants
- Remove Participants
- Demote Participants
- Approve Join Request
- Reject Join Request
- List Join Requests
- Get Group Picture
- Set Group Picture
- Delete Group Picture
- Leave Group
- Update Group Name
- Lock Group Edits
- Promote Participants
- Profile Actions
- Server Actions
- Miscellaneous Actions
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
- Revoke a mistakenly sent message in a customer support chat to prevent the recipient from seeing it.
- 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
- WARest WhatsApp REST API - Official repository and documentation for the WARest WhatsApp REST API used by this node.
