WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node allows you to mute a specific chat in a WhatsApp-like messaging system using the WaAPI service. Muting a chat means that notifications or alerts from that chat will be silenced until it is unmuted. This can be useful in scenarios where you want to temporarily avoid distractions from certain conversations, such as during meetings or focused work periods.

A practical example: You have a group chat that tends to be very active during work hours, and you want to mute it until the end of the year or a specific date. Using this node, you can specify the chat ID and optionally set an automatic unmute date.

Properties

Name Meaning
Id The instance ID of the WhatsApp client or session you want to control.
Chat Id The unique identifier of the chat to mute. Format: <countrycode><usernumber>@c.us for individual chats or @g.us for groups. Example: 50664083362@c.us.
Unmute Date (Optional) ISO 8601 formatted date-time string specifying when the chat should be automatically unmuted. If omitted, the chat remains muted indefinitely. Example: 2024-12-31T23:59:59.999Z.

Output

The node outputs JSON data representing the result of the mute operation. This typically includes confirmation details such as success status and possibly metadata about the muted chat. There is no binary output.

Dependencies

  • Requires an API key credential for the WaAPI service.
  • The node communicates with the WaAPI endpoint at https://waapi.app/api/v1.
  • Proper configuration of the API authentication within n8n is necessary.

Troubleshooting

  • Invalid Chat Id: If the chat ID format is incorrect or the chat does not exist, the API may return an error. Ensure the chat ID follows the correct pattern (<countrycode><usernumber>@c.us or @g.us).
  • Authentication Errors: Missing or invalid API credentials will cause authentication failures. Verify that the API key is correctly configured.
  • Unmute Date Format: Providing an incorrectly formatted unmute date may lead to errors. Use ISO 8601 format strictly.
  • Instance ID Issues: The instance ID must correspond to an active WhatsApp client session; otherwise, the request will fail.

Links and References

Discussion