z-api by @jaimeflneto icon

z-api by @jaimeflneto

Interact with Z-API to send WhatsApp messages

Overview

This node interacts with the Z-API service to manage WhatsApp contacts. Specifically, the 'Remove Contact' operation allows users to delete a contact from their WhatsApp contact list by specifying the contact's phone number. This is useful for automating contact management tasks, such as cleaning up outdated or unwanted contacts in bulk.

Use Case Examples

  1. Automatically remove a contact from WhatsApp when they unsubscribe from a service.
  2. Clean up contacts in WhatsApp based on external CRM data.

Properties

Name Meaning
Phone Number The phone number of the contact to be removed, entered as digits only without any formatting.

Output

JSON

  • json - The JSON response from the Z-API service indicating the result of the remove contact operation.

Dependencies

  • Z-API service for WhatsApp interaction
  • An API key credential for authenticating with Z-API

Troubleshooting

  • Ensure the phone number is provided in the correct format (digits only, no formatting).
  • Verify that the API key credential for Z-API is correctly configured and has the necessary permissions.
  • Common errors may include invalid phone number format or network issues connecting to Z-API. Check error messages for details and ensure the phone number exists in the contact list before attempting removal.

Discussion