Wazzap API icon

Wazzap API

Interact with Wazzap API

Overview

The node interacts with the Wazzap API to manage WhatsApp groups. Specifically, the "Demote Admins" operation under the "Group" resource allows you to remove admin privileges from specified phone numbers within a given WhatsApp group.

This node is useful in scenarios where group administrators want to programmatically adjust admin roles without manually changing settings in the WhatsApp app. For example, an organization managing multiple WhatsApp groups can automate demotion of admins based on certain triggers or workflows.

Practical examples:

  • Automatically demote users who have left the company from admin status in internal communication groups.
  • Batch update admin roles after a team restructuring.

Properties

Name Meaning
👥 Group ID (JID) The unique identifier of the WhatsApp group where the demotion will occur. Format example: 1234567890-123456@g.us.
📞 Phone Numbers List of phone numbers whose admin privileges will be removed. Each number must include the full country code, e.g., +521234567890. Multiple numbers can be provided.
⚙️ Additional Options Optional settings to customize the request:
- 🔢 Priority Number: Select which sending number to use (0 = Default, 999 = Random, 1–5 = Specific slot).
- ⏱️ Delay Settings: Configure a random delay range (in ms) before sending the demotion command, with start and end values.

Output

The node outputs a JSON array containing the response from the Wazzap API for the demotion action. This typically includes confirmation of the demotion status for each phone number processed.

If the API supports binary data (e.g., media), it would be included accordingly, but this operation primarily deals with JSON responses confirming admin status changes.

Dependencies

  • Requires an active connection to the Wazzap API service.
  • Needs an API key credential configured in n8n to authenticate requests.
  • Network access to https://doc.wazzap.mx/api-reference or the actual Wazzap API endpoint.

Troubleshooting

  • Unsupported operation error: If the node throws "Unsupported operation.", verify that the selected resource is "Group" and operation is "Demote Admins".
  • Invalid Group ID or Phone Numbers: Ensure the group JID and phone numbers are correctly formatted and valid.
  • API authentication errors: Confirm that the API key credential is properly set up and has necessary permissions.
  • Delay settings misconfiguration: If delays cause unexpected behavior, check that start and end delay values are numeric and logical (start ≤ end).
  • Network issues: Verify network connectivity to the Wazzap API endpoint.

Links and References

  • Wazzap API Documentation (official API reference)
  • WhatsApp group management concepts (external resource for understanding group IDs and admin roles)

Discussion