N8N Tools - Uazapi icon

N8N Tools - Uazapi

Complete Uazapi integration - Premium WhatsApp API with advanced messaging and automation

Overview

This node integrates with the Uazapi WhatsApp API, enabling users to manage and automate WhatsApp messaging and instance operations within n8n workflows. Specifically, the "Restart Instance" operation under the "Instance" resource allows restarting a WhatsApp instance remotely via the API.

This functionality is useful when you need to programmatically reset or refresh your WhatsApp instance, for example:

  • Recovering from connection issues without manual intervention.
  • Automating maintenance tasks on your WhatsApp integration.
  • Restarting the instance after configuration changes.

Properties

Name Meaning
Additional Fields Optional extra parameters that can be added; includes:
- Reply to Message ID: ID of message to reply to
- Delay (seconds): Delay before sending message
- Disable Link Preview: Whether to disable link previews in messages
- Mention Users: Comma-separated phone numbers to mention in the message

For the "Restart Instance" operation specifically, no additional required input properties are needed beyond selecting the resource and operation.

Output

The node outputs a JSON object containing the response from the Uazapi API after attempting to restart the WhatsApp instance. The structure typically includes status information about the restart request.

Example output JSON structure:

{
  "status": "success",
  "message": "Instance restart initiated"
}

If an error occurs, the output will contain an error field with the error message.

Dependencies

  • Requires an active Uazapi API credential with:
    • API key
    • API token
    • API base URL
    • Instance ID
  • The node uses these credentials to authenticate and send requests to the Uazapi WhatsApp API.
  • No additional environment variables are required beyond the configured credentials.

Troubleshooting

  • Common Issues:

    • Invalid or expired API credentials may cause authentication failures.
    • Network connectivity problems can prevent the node from reaching the Uazapi service.
    • Incorrect instance ID will result in failure to target the correct WhatsApp instance.
  • Error Messages:

    • "Unauthorized": Check that the API token and key are valid and have not expired.
    • "Instance not found": Verify the instance ID is correct.
    • "Network Error": Ensure your n8n server has internet access and can reach the Uazapi endpoint.
  • Resolution Tips:

    • Re-enter and test API credentials.
    • Confirm instance ID matches your WhatsApp instance.
    • Check firewall or proxy settings that might block outgoing requests.

Links and References

Discussion