Actions148
- Send messages Actions
- Outbound Messages Actions
- WhatsApp Numbers Actions
- Groups Actions
- Channels Actions
- Chats Actions
- Chat Contacts Actions
- Chat Messages Actions
- Chat Files Actions
- Team Actions
- Labels Actions
- Departments Actions
- Files Actions
- Quick replies Actions
- Queue Actions
- WhatsApp session Actions
- WhatsApp profile Actions
- Business catalog Actions
- Campaigns Actions
- Meeting Links Actions
- User Status Actions
- Webhooks Actions
- Other Actions
Groups → Reject Members
AI-generatedOverview
The "Reject Members" operation under the "Groups" resource allows users to reject pending membership requests in WhatsApp groups managed via the WaliChat API. This node is useful for automating group membership management, especially when you want to control who can join a group by programmatically rejecting unwanted or unauthorized members.
Common scenarios include:
- Automatically rejecting all pending join requests to a group during maintenance or lockdown periods.
- Rejecting specific phone numbers from joining a group based on custom criteria.
- Managing group membership at scale without manual intervention.
Example: You have a WhatsApp group for customer support and want to reject all pending join requests during off-hours automatically.
Properties
| Name | Meaning |
|---|---|
| WhatsApp Number | The ID of the WhatsApp number (device) used to perform the operation. |
| Group ID | The unique identifier of the WhatsApp group where members are to be rejected. |
| Approve All | Boolean flag indicating whether to reject all pending members in the group. |
| Phone Numbers | List of phone numbers to reject from the group (used only if "Approve All" is false). |
Output
The node outputs JSON data representing the result of the rejection operation. This typically includes confirmation details about which members were rejected or any errors encountered during the process.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the WaliChat WhatsApp API service.
- Needs an API key credential configured in n8n to authenticate requests.
- The WhatsApp number (device) must be registered and linked with the WaliChat API.
- The group must exist and be accessible by the specified WhatsApp number.
Troubleshooting
Common issues:
- Invalid or missing WhatsApp number/device ID may cause authentication failures.
- Incorrect or expired group ID will result in failure to locate the group.
- Trying to reject members when there are no pending requests might return empty results or errors.
- Providing phone numbers that are not pending members could lead to partial success or errors.
Error messages:
- "Group not found": Verify the group ID is correct and the device has access to it.
- "Unauthorized" or "Authentication failed": Check the API key credential and device registration.
- "No pending members to reject": Indicates there are no pending join requests; verify the group state.
Resolving these usually involves verifying input parameters, ensuring proper API credentials, and confirming group membership status.
Links and References
- WaliChat API Documentation (for detailed API usage)
- WhatsApp Group Management Best Practices (general WhatsApp guidelines)
- n8n Documentation on Custom Nodes and Credentials