Evolution API icon

Evolution API

Interact with Evolution API

Actions114

Chat → Block Contact

AI-generated

Overview

This node interacts with the Evolution API to perform chat-related operations, specifically blocking or unblocking a contact in the chat system. It is useful for managing contact permissions within a chat instance, such as preventing unwanted communication by blocking a contact or restoring communication by unblocking them.

Use Case Examples

  1. Blocking a spam contact number to prevent receiving messages from them.
  2. Unblocking a previously blocked contact to resume communication.

Properties

Name Meaning
Instance Name The name of the chat instance where the contact block or unblock action will be performed.
Contact The contact number (remoteJid) to be blocked or unblocked in the chat instance.
Action The action to perform on the contact, either blocking or unblocking them.

Output

JSON

  • status - The result status of the block or unblock action performed on the contact.
  • message - Additional message or information returned from the API about the action.

Dependencies

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

Troubleshooting

  • Ensure the 'Instance Name' and 'Contact' fields are correctly filled; missing or incorrect values may cause the operation to fail.
  • The node may throw an 'Unsupported operation' error if the specified operation is not implemented in the node's code, indicating a configuration or version mismatch.
  • API authentication errors may occur if the Evolution API credentials are invalid or missing; verify the API key setup.

Discussion