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 perform various operations related to WhatsApp messaging. Specifically, the 'Instance - Disconnect' operation allows users to disconnect a WhatsApp instance from the Z-API service. This can be useful for managing active WhatsApp sessions, freeing up resources, or troubleshooting connection issues.

Use Case Examples

  1. Disconnect a WhatsApp instance when it is no longer needed to stop receiving messages and free up the instance slot.
  2. Use the disconnect operation as part of a workflow to reset the WhatsApp connection before reconnecting or switching accounts.

Output

JSON

  • status - Indicates the result of the disconnect operation, e.g., success or failure message
  • message - Additional information or details about the disconnect operation outcome

Dependencies

  • Requires Z-API service credentials (API key or token) to authenticate and authorize the operation.

Troubleshooting

  • If the disconnect operation fails, check that the provided API credentials are valid and have the necessary permissions.
  • Ensure the WhatsApp instance ID or identifier used is correct and currently active.
  • Common error messages may include authentication errors, instance not found, or network connectivity issues. Verify credentials, instance status, and network connection to resolve these.

Links

  • Z-API Documentation - Official documentation for Z-API, including details on instance management and disconnect operations.

Discussion