Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Contact → Block

AI-generated

Overview

This node enables interaction with WhatsApp through the Wappfy API, specifically allowing you to block a contact on WhatsApp. Blocking a contact prevents them from sending you messages or seeing your status updates. This operation is useful in scenarios where you want to manage unwanted communications or maintain privacy by restricting certain contacts.

For example, you might use this node to automatically block spam numbers detected in your workflow or to enforce communication policies by blocking specific contacts based on business rules.

Properties

Name Meaning
Contact ID The unique identifier or phone number of the contact to block

Output

The output JSON contains the response from the Wappfy API after attempting to block the specified contact. It typically includes confirmation of the block action or error details if the operation failed.

Example structure:

{
  "json": {
    // API response confirming block or error information
  }
}

No binary data is output by this operation.

Dependencies

  • Requires an active Wappfy API credential with a valid API key and instance name configured in n8n.
  • The node makes HTTP requests to the Wappfy API endpoints.
  • Network access to the Wappfy API base URL is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Contact ID: Ensure the Contact ID or phone number is correctly provided.
    • Authentication errors: Verify that the API key credential is correctly set up and has sufficient permissions.
    • Network connectivity problems: Confirm that the n8n instance can reach the Wappfy API endpoint.
  • Error messages:

    • "Contact not found": The specified contact does not exist or is invalid. Check the Contact ID.
    • "Unauthorized" or "Invalid API key": Authentication failed. Recheck API credentials.
    • "Failed to block contact": General failure; inspect the API response for more details.

Resolving these usually involves verifying input parameters, credentials, and network settings.

Links and References

Discussion