WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation blocks a contact in a messaging or communication platform. It is useful for scenarios where you want to prevent a specific contact from sending messages or interacting with you. For example, you might use this node to block spam contacts or unwanted users automatically based on certain triggers.

Use Case Examples

  1. Automatically block a contact when they send a spam message.
  2. Block a contact based on user input or external criteria in a workflow.

Properties

Name Meaning
Session The session identifier used to authenticate and specify the user session for the blocking action.
Contact Id The unique identifier of the contact to be blocked.
Request Options Additional options to customize the request such as batching, SSL certificate validation, proxy settings, and timeout.

Output

JSON

  • success - Indicates whether the contact was successfully blocked.
  • contactId - The ID of the contact that was blocked.
  • message - Additional information or status message about the block operation.

Dependencies

  • Requires an authenticated session to perform the block operation, typically via an API key or session token.

Troubleshooting

  • Ensure the session ID is valid and active; invalid sessions will cause authentication errors.
  • Verify the contact ID is correct and exists; invalid contact IDs will result in failure to block.
  • Check network settings if using proxy or custom SSL options to avoid connection issues.
  • Timeout errors may occur if the server is slow or unresponsive; consider increasing the timeout setting.

Discussion