UazAPI icon

UazAPI

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

Overview

The node integrates with the UazAPI service to manage WhatsApp groups, specifically allowing updates to group participants. It supports adding, removing, promoting (to admin), and demoting participants within a specified WhatsApp group.

This node is useful in scenarios where you need to automate group membership management, such as:

  • Adding new members to a group after registration or approval.
  • Removing inactive or unauthorized users automatically.
  • Promoting trusted members to admin roles for moderation.
  • Demoting admins when necessary.

For example, an organization could use this node to maintain their customer support WhatsApp groups by automatically adding new customers and promoting experienced agents to admins.

Properties

Name Meaning
Group JID The unique identifier of the WhatsApp group (JID format, e.g., 120363308883996631@g.us).
Participants Comma-separated list of participant phone numbers to update in the group (e.g., 5511999999999, 5511888888888).
Participant Action The action to perform on the participants: Add, Remove, Promote (Admin), or Demote.

Output

The node outputs JSON data representing the response from the UazAPI endpoint after performing the participant update operation. This typically includes status information about the success or failure of the request and any relevant details returned by the API.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the UazAPI service.
  • Needs an API key credential configured in n8n for authenticating requests to UazAPI.
  • The base URL for the UazAPI must be set in the credentials configuration.
  • The node uses HTTP POST requests to the /group/updateParticipants endpoint of the UazAPI.

Troubleshooting

  • Invalid Group JID: If the group JID is incorrect or does not exist, the API will likely return an error. Verify the group ID format and correctness.
  • Incorrect Participant Numbers: Ensure participant phone numbers are correctly formatted and separated by commas without extra spaces.
  • Insufficient Permissions: Attempting to promote or demote participants may fail if the authenticated user lacks admin rights in the group.
  • API Authentication Errors: Check that the API key credential is valid and has the necessary permissions.
  • Network Issues: Connectivity problems can cause request failures; verify network access to the UazAPI endpoint.

Common error messages usually come directly from the UazAPI and should be inspected in the node's output JSON for troubleshooting.

Links and References

Discussion