Zender icon

Zender

Interact with Zender WhatsApp API

Overview

This node integrates with the Zender WhatsApp API to manage WhatsApp accounts and perform various operations such as linking, relinking, deleting accounts, sending messages, managing chats, campaigns, contacts, OTPs, SMS, groups, servers, and phone number validation.

Specifically, for the Account - Delete operation, the node deletes a WhatsApp account identified by its unique Account ID from the Zender system. This is useful when you want to remove an existing WhatsApp account from your Zender integration, for example, if the account is no longer active or needed.

Practical example:

  • You have multiple WhatsApp accounts linked to your Zender service and want to programmatically delete one that is obsolete or compromised by specifying its Account ID.

Properties

Name Meaning
Account ID The unique identifier of the WhatsApp account in Zender that you want to delete.

Output

The output is a JSON object containing the response from the Zender API after attempting to delete the specified WhatsApp account. It typically includes status information about the deletion request, such as success confirmation or error details.

Example output structure (simplified):

{
  "status": "success",
  "message": "Account deleted successfully",
  "accountId": "the-deleted-account-id"
}

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

The node does not output binary data for this operation.

Dependencies

  • Requires an API key credential for authenticating with the Zender WhatsApp API.
  • The node uses HTTP GET requests to the Zender API endpoint /delete/wa.account with the query parameter unique set to the Account ID.
  • The base URL and API secret are obtained from the configured credentials.
  • No additional environment variables are required beyond the API key credential.

Troubleshooting

  • Common issues:

    • Invalid or missing Account ID: Ensure the Account ID provided is correct and corresponds to an existing WhatsApp account in Zender.
    • Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
    • Network or connectivity problems: Check network access to the Zender API endpoint.
    • Attempting to delete an account that is currently in use or linked may result in failure.
  • Error messages:

    • "Account not found": The specified Account ID does not exist. Double-check the ID.
    • "Unauthorized" or "Invalid API key": The API key credential is incorrect or expired.
    • "Failed to delete account": General failure; check API response details for more info.
  • Resolution steps:

    • Confirm the Account ID is accurate.
    • Re-authenticate or update the API key credential.
    • Retry after ensuring network stability.
    • Consult Zender API documentation or support if persistent errors occur.

Links and References

Discussion