Evolution API icon

Evolution API

Interact with Evolution API

Overview

This node interacts with the Evolution API to perform various operations. Specifically, for the 'Chat' resource and 'Delete Message' operation, it deletes a specified message from a chat. This is useful in scenarios where you need to programmatically remove messages from a chat instance, such as moderating conversations or managing message history.

Use Case Examples

  1. Deleting a message sent by the instance in a chat with a specific contact.
  2. Removing a message sent by another participant in a group chat.

Properties

Name Meaning
Instance Name The name of the instance from which the message will be deleted.
Contact The contact number associated with the chat where the message exists.
Message ID The unique identifier of the message to be deleted.
Message Is From Me Indicates if the message was sent by the instance itself.
Participant Number The number of the participant who sent the message, required if the message was not sent by the instance.

Output

JSON

  • success - Indicates whether the message deletion was successful.
  • messageId - The ID of the message that was deleted.

Dependencies

  • Requires an API key credential for the Evolution API to authenticate requests.

Troubleshooting

  • Ensure the instance name and contact number are correctly specified to avoid message deletion failures.
  • If deleting a message not sent by the instance, the participant number must be provided; otherwise, the operation will fail.
  • Common errors include unsupported operations if the resource or operation names are incorrect, or authentication errors if the API key is invalid or missing.

Discussion