WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation allows users to reject join requests to a WhatsApp group using the WARest WhatsApp REST API. It is useful for group administrators who want to manage membership requests by denying access to certain participants. For example, if a user requests to join a group but does not meet the criteria set by the admin, this operation can be used to reject their request programmatically.

Use Case Examples

  1. Reject a join request from a specific participant in a WhatsApp group by providing the session ID, group ID, and participant JID or phone number.
  2. Automate group membership management by rejecting multiple join requests based on custom logic in an n8n workflow.

Properties

Name Meaning
Session Identifier of the WhatsApp session to use for the operation. It can be selected from a list or entered manually.
Group ID The unique identifier (JID) of the WhatsApp group where the join request is to be rejected.
Participants List of participants (JIDs or phone numbers) whose join requests are to be rejected. Multiple participants can be specified.

Output

JSON

  • json - The JSON response from the WARest API indicating the result of the reject join request operation.

Dependencies

  • WARest WhatsApp REST API

Troubleshooting

  • Ensure the session ID is valid and active; otherwise, the API call will fail.
  • Verify the group ID is correct and corresponds to a group where the session user has admin rights.
  • Make sure the participants' JIDs or phone numbers are correctly formatted and exist in the join requests.
  • Common error messages include authorization errors if the session is invalid or permission errors if the user is not an admin of the group. Check credentials and group admin status to resolve these issues.

Discussion