Zender icon

Zender

Interact with Zender WhatsApp API

Overview

This node integrates with the Zender WhatsApp API to manage WhatsApp chats and messages. Specifically, for the Chat resource and Delete Received operation, it allows users to delete a received chat by its unique chat ID. This is useful in scenarios where you want to programmatically remove specific incoming chat records from your WhatsApp account managed via Zender.

Practical examples include:

  • Automatically cleaning up old or processed received chats.
  • Removing sensitive or unwanted received chat messages based on business logic.
  • Managing chat data retention policies by deleting received chats after certain workflows.

Properties

Name Meaning
Chat ID The unique identifier of the chat to delete. It must be a number and is required.

Output

The output is a JSON object representing the response from the Zender API after attempting to delete the specified received chat. This typically includes confirmation of deletion or error details if the operation failed.

Example output structure (simplified):

{
  "success": true,
  "message": "Received chat deleted successfully",
  "id": 12345
}

If an error occurs, the output will contain an error message describing the issue.

Dependencies

  • Requires an active connection to the Zender WhatsApp API.
  • Needs an API key credential configured in n8n for authentication.
  • The node uses HTTP GET requests with query parameters to interact with the Zender API endpoints.
  • No binary data handling is involved in this operation.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the Chat 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 base URL is reachable.
  • Error messages:

    • "Chat ID not found" or similar indicates the chat does not exist or was already deleted.
    • "Unauthorized" suggests invalid or expired API credentials.
    • "Failed to delete chat" may indicate server-side issues or incorrect parameters.

To resolve errors, verify input parameters, check API credentials, and consult Zender API documentation or support if needed.

Links and References

  • Zender WhatsApp API Documentation (general reference for API endpoints)
  • n8n HTTP Request Node documentation for understanding request/response handling within n8n.

Discussion