Actions85
- Instances Actions
- Client Actions
- Message Actions
- Chat Actions
- Contact Actions
- Number Actions
- Group Actions
- Channel Actions
- Label Actions
- Story Actions
Overview
The "Block Contact" operation in the Contact resource allows users to block a specific WhatsApp contact by their WhatsApp ID. This node is useful in scenarios where you want to programmatically prevent communication with certain contacts, such as blocking spam numbers or managing user privacy automatically.
For example, if you receive unwanted messages from a particular contact, you can use this node to block that contact based on their WhatsApp ID, stopping further messages from them.
Properties
| Name | Meaning |
|---|---|
| Id | Instance ID (a numeric identifier for the instance of the service or session). |
| Contact Id | The WhatsApp ID of the contact to block, formatted as number@c.us (e.g., 1234567890@c.us). |
Output
The node outputs JSON data representing the result of the block contact request. This typically includes confirmation of the block action or any relevant status information returned by the API. There is no indication that binary data is output by this node.
Dependencies
- Requires an API key credential for authentication with the WaAPI service.
- The node interacts with the WaAPI API endpoint at
https://waapi.app/api/v1. - Proper configuration of the API key credential within n8n is necessary for successful requests.
Troubleshooting
- Invalid Contact Id format: Ensure the contact ID follows the required format
number@c.us. Incorrect formatting will likely cause the API to reject the request. - Authentication errors: If the API key credential is missing or invalid, the node will fail to authenticate. Verify that the API key is correctly set up in n8n credentials.
- Instance ID issues: The instance ID must be valid and correspond to an active session or instance in the WaAPI service.
- Network or API downtime: Connectivity issues or API service outages may cause failures; check network connectivity and WaAPI service status.
Links and References
- WaAPI Official Documentation (for detailed API usage and contact blocking specifics)
- WhatsApp Contact ID Format Explanation