Actions83
- Instances Actions
- Client Actions
- Message Actions
- Chat Actions
- Contact Actions
- Number Actions
- Group Actions
- Channel Actions
- Label Actions
- Story Actions
Overview
This node allows you to block a specific WhatsApp contact by their WhatsApp ID. It is useful in scenarios where you want to programmatically prevent receiving messages or calls from certain contacts, for example, to automate moderation or manage communication preferences.
A practical example would be an automated workflow that blocks spammy or unwanted contacts based on certain triggers or criteria.
Properties
| Name | Meaning |
|---|---|
| Id | Instance ID of the node execution (a required numeric identifier). |
| 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 operation. This typically includes confirmation of the action or any relevant response from the WhatsApp API indicating success or failure.
No binary data output is involved.
Dependencies
- Requires an API key credential for authenticating with the WaAPI service.
- The node communicates with the WaAPI API endpoint at
https://waapi.app/api/v1. - Proper configuration of the API authentication credentials within n8n is necessary.
Troubleshooting
- Invalid Contact Id format: Ensure the contact ID follows the correct format (
number@c.us). Incorrect formatting will likely cause the API call to fail. - Authentication errors: If the API key is missing or invalid, the node will not be able to perform the block operation. Verify that the API credentials are correctly set up.
- Network issues: Connectivity problems to the WaAPI endpoint can cause timeouts or failures.
- Permission issues: The API key used must have permissions to block contacts; otherwise, the request will be denied.
Links and References
- WaAPI Official Documentation (for detailed API usage and contact blocking specifics)
- WhatsApp Contact ID Format Explanation