WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation lists join requests for a specified WhatsApp group using the WARest WhatsApp REST API. It is useful for administrators who want to manage and review pending join requests to their WhatsApp groups. For example, a group admin can use this node to fetch all pending join requests and then decide to approve or reject them using other node operations.

Use Case Examples

  1. Fetch all pending join requests for a group to review new members before approval.
  2. Automate group membership management by listing join requests and processing them accordingly.

Properties

Name Meaning
Session Identifier of the WhatsApp session to use for the API call. It can be selected from a list or entered manually.
Group ID The unique identifier (JID) of the WhatsApp group for which to list join requests. It should end with @g.us or be the raw group ID.

Output

JSON

  • json - Array of join request objects returned by the WARest API, each representing a pending join request for the specified group.

Dependencies

  • Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.

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 has admin privileges.
  • Common error messages include 'Operation not implemented' if the operation name is incorrect, or API errors if authentication fails or parameters are missing.
  • If no join requests are returned, verify that there are pending requests for the group.

Links

Discussion