Maytapi icon

Maytapi

Integrate with Maytapi WhatsApp Unofficial API

Group → Get Approval Request List

AI-generated

Overview

This node integrates with the Maytapi WhatsApp Unofficial API to manage WhatsApp groups and their approval requests. Specifically, the Get Approval Request List operation under the Group resource retrieves a list of pending join requests that require admin approval for a specified WhatsApp group.

This functionality is useful in scenarios where WhatsApp groups have membership restrictions requiring admins to approve new members before they can join. For example, community managers or team leads can use this node to programmatically fetch all pending join requests and then decide to approve or reject them using other operations.

Practical examples:

  • Automatically fetching pending join requests to display in a dashboard.
  • Triggering notifications when new join requests arrive.
  • Integrating with CRM or user management systems to validate join requests before approval.

Properties

Name Meaning
Phone ID Source Select how to provide the Phone ID: either "From Credentials" (uses stored credential) or "Custom" (enter manually).
Phone ID The custom Phone ID of your WhatsApp instance (required if "Phone ID Source" is set to Custom).
Group ID The unique identifier of the WhatsApp group (conversation ID ending with @g.us) for which to get the approval request list.

Output

The output JSON contains the response from the Maytapi API endpoint that lists pending approval requests for the specified group. This typically includes details such as:

  • List of phone numbers requesting to join.
  • Metadata about each request (e.g., timestamp, requester info).
  • Status of each request (pending approval).

The exact structure depends on the Maytapi API response but generally provides all necessary information to identify and process pending join requests.

No binary data is output by this operation.

Dependencies

  • Requires an active Maytapi WhatsApp API account with valid API credentials (an API key and associated Phone ID).
  • The node expects the Phone ID either from credentials or as a custom input.
  • Network access to https://api.maytapi.com/api is required.
  • Proper configuration of the Maytapi API credentials within n8n is necessary.

Troubleshooting

  • Error: "Phone ID is required."
    Occurs if no Phone ID is provided either via credentials or custom input. Ensure you have set the Phone ID correctly.

  • Invalid Group ID format or not found
    Make sure the Group ID ends with @g.us and corresponds to an existing WhatsApp group linked to your Maytapi account.

  • API connectivity issues
    Verify network connectivity and that your API key is valid and has permissions to access group approval requests.

  • Empty approval request list
    This means there are currently no pending join requests for the specified group.

Links and References


This summary covers the logic and usage of the Get Approval Request List operation for the Group resource in the Maytapi node based on static code analysis.

Discussion