Actions42
- Message Actions
- Chat Actions
- Account Actions
- Campaign Actions
- Contact Actions
- Group Actions
- OTP Actions
- SMS Actions
- Validation Actions
Overview
This node integrates with the Zender WhatsApp API to manage contacts, including deleting unsubscribed contacts. Specifically, the "Delete Unsubscribed" operation under the "Contact" resource allows users to remove a contact who has unsubscribed from communications. This is useful for maintaining clean contact lists and complying with communication preferences or regulations.
Practical scenarios include:
- Automatically removing unsubscribed contacts from your WhatsApp marketing lists.
- Cleaning up contact databases to avoid sending messages to users who opted out.
- Managing contact lifecycle in automated workflows that handle subscription status.
Properties
| Name | Meaning |
|---|---|
| Contact ID | The unique numeric identifier of the contact to delete. |
Output
The node outputs a JSON object representing the response from the Zender API after attempting to delete the unsubscribed contact. This typically includes success confirmation or error details related to the deletion request.
No binary data output is involved in this operation.
Example output structure (simplified):
{
"success": true,
"message": "Unsubscribed contact deleted successfully",
"id": 12345
}
Dependencies
- Requires an API key credential for authenticating with the Zender WhatsApp API.
- The node uses HTTP requests to communicate with the Zender API endpoints.
- The base URL and API secret are obtained from the configured credentials.
- No additional environment variables are explicitly required beyond the API credential.
Troubleshooting
Common issues:
- Invalid or missing Contact ID: Ensure the Contact ID provided exists and is correct.
- Authentication errors: Verify that the API key credential is valid and has necessary permissions.
- Network or API endpoint errors: Check connectivity and that the Zender API service is operational.
Error messages:
"error": "Contact not found": The specified Contact ID does not exist; verify the ID."error": "Unauthorized": API key is invalid or expired; update credentials."error": "Failed to delete contact": General failure; check API limits or server status.
To resolve errors, confirm input parameters, validate credentials, and consult Zender API status.
Links and References
- Zender WhatsApp API Documentation (general reference)
- n8n documentation on HTTP Request Node for understanding API calls
- Best practices for managing unsubscribed contacts in messaging platforms