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 and perform various chat-related operations. Specifically, the Chat - Mute operation allows users to mute or unmute a WhatsApp chat for a specified duration. This is useful in scenarios where you want to silence notifications from a particular chat temporarily or indefinitely without deleting or archiving it.

Practical examples:

  • Automatically mute a chat during non-working hours to avoid distractions.
  • Unmute a chat after a meeting or event ends.
  • Mute a chat forever if it's not relevant but you want to keep the conversation history.

Properties

Name Meaning
Chat Number The phone number of the chat to mute/unmute (with country code, e.g., 5511999999999).
Mute Duration Duration to mute the chat. Options: Unmute (0), 8 hours (8), 1 week (168), Forever (-1).

Output

The node outputs the JSON response returned by the UazAPI endpoint for muting a chat. This typically includes confirmation of the mute action and any related metadata from the API.

The output structure is:

{
  "json": {
    // API response fields confirming mute status, timestamps, etc.
  }
}

No binary data is produced by this operation.

Dependencies

  • Requires an active connection to the UazAPI service.
  • Requires valid API credentials configured in n8n for authenticating requests to UazAPI.
  • The base URL for the API is taken from the credential configuration.
  • The node uses HTTP POST requests to the /chat/mute endpoint of the UazAPI.

Troubleshooting

  • Invalid Chat Number: If the chat number is incorrect or not registered on WhatsApp, the API may return an error. Verify the phone number format and existence on WhatsApp.
  • Authentication Errors: Ensure that the API key credential is correctly set up and has permissions to perform chat operations.
  • Mute Duration Issues: Providing an unsupported mute duration value may cause the request to fail. Use one of the predefined options (0, 8, 168, -1).
  • Network/Timeout Errors: Check network connectivity and API availability if requests time out or fail.
  • API Limitations: Some accounts or instances might have restrictions on muting chats; consult UazAPI documentation or support if issues persist.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions.

Discussion