UazAPI icon

UazAPI

Integração completa com UazAPI - 90+ endpoints para automação WhatsApp

Overview

This node integrates with the UazAPI service to manage WhatsApp chats programmatically. Specifically, for the Chat - Delete operation, it allows users to delete a chat from WhatsApp through the API. This is useful in scenarios where you want to automate chat cleanup or remove conversations based on certain triggers or workflows.

For example, after processing customer support conversations, you might want to automatically delete chats to keep the WhatsApp instance clean. Another use case could be deleting chats that contain sensitive information once they are no longer needed.

Properties

Name Meaning
Chat Number The phone number of the chat to delete, including country code but without the "+" sign.

Output

The output is a JSON object representing the response from the UazAPI after attempting to delete the specified chat. It typically contains status information about the deletion request, such as success confirmation or error details.

No binary data is output by this operation.

Example output structure (simplified):

{
  "success": true,
  "message": "Chat deleted successfully"
}

or in case of failure:

{
  "success": false,
  "error": "Chat not found"
}

Dependencies

  • Requires an active connection to the UazAPI service.
  • Requires valid credentials configured in n8n for authenticating requests to UazAPI (an API key credential).
  • The base URL for the UazAPI must be set in the credentials.
  • The node uses HTTP POST requests to the endpoint /chat/delete on the UazAPI server.

Troubleshooting

  • Common issues:

    • Invalid or missing chat number format may cause the API to reject the request.
    • Network connectivity issues or incorrect base URL configuration can prevent successful API calls.
    • Insufficient permissions or expired API credentials will result in authentication errors.
    • Trying to delete a chat that does not exist or is already deleted may return an error.
  • Error messages and resolutions:

    • "Chat not found": Verify the chat number is correct and the chat exists.
    • Authentication errors: Check that the API key credential is correctly set up and has necessary permissions.
    • Network errors/timeouts: Ensure the UazAPI service is reachable from your environment and the base URL is correct.
    • "Invalid phone number": Confirm the phone number format matches the expected pattern (country code + number, no "+").

Links and References

  • UazAPI Documentation (hypothetical link)
  • WhatsApp Business API concepts for chat management
  • n8n HTTP Request node documentation for understanding API calls

This summary focuses solely on the Chat - Delete operation of the UazAPI node as requested.

Discussion