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 instances and perform various operations on them. Specifically, for the Instance - Disconnect operation, it allows users to disconnect a WhatsApp instance that is currently connected via the UazAPI platform.

Typical use cases include:

  • Gracefully terminating an active WhatsApp session managed by UazAPI.
  • Managing multiple WhatsApp instances programmatically, including disconnecting instances when no longer needed or before deleting them.
  • Automating workflows where WhatsApp connections need to be reset or refreshed.

For example, you might use this node in an automation workflow to disconnect a WhatsApp instance after sending a batch of messages or before updating its configuration.

Properties

Name Meaning
Instance Name Unique name identifier of the WhatsApp instance to disconnect.

The property "Instance Name" is required and specifies which WhatsApp instance the disconnect operation will target.

Output

The node outputs a JSON object containing the response from the UazAPI endpoint for the disconnect operation. This typically includes status information about the disconnection request, such as success confirmation or error details.

No binary data output is involved in this operation.

Example output structure (illustrative):

{
  "status": "success",
  "message": "Instance disconnected successfully"
}

Dependencies

  • Requires an API key credential for authenticating with the UazAPI service.
  • The base URL for the UazAPI must be configured in the credentials.
  • The node uses HTTP requests authenticated via the provided API key to communicate with UazAPI endpoints.

Troubleshooting

  • Common issues:

    • Incorrect or missing instance name: Ensure the "Instance Name" property matches an existing instance managed by UazAPI.
    • Authentication errors: Verify that the API key credential is valid and has the necessary permissions.
    • Network or connectivity problems: Confirm that the n8n environment can reach the UazAPI base URL.
  • Error messages:

    • Errors returned from the UazAPI will be included in the node's output JSON under an error field if continueOnFail is enabled.
    • Typical errors may include "Instance not found", "Unauthorized", or "Failed to disconnect".
  • Resolution tips:

    • Double-check instance names and credentials.
    • Review UazAPI documentation for specific error codes.
    • Enable continueOnFail in the node settings to handle errors gracefully in workflows.

Links and References

  • UazAPI Documentation (replace with actual URL if available)
  • WhatsApp Automation Concepts: Useful for understanding instance management and connection lifecycle.

This summary focuses solely on the "Instance - Disconnect" operation as requested, based on static analysis of the provided source code and properties.

Discussion