Maytapi icon

Maytapi

Integrate with Maytapi WhatsApp Unofficial API

Group → Approve Join Requests

AI-generated

Overview

The node integrates with the Maytapi WhatsApp Unofficial API to manage WhatsApp groups and their join requests. Specifically, the "Approve Join Requests" operation allows users to approve pending join requests for a specified WhatsApp group by providing the group ID and a list of phone numbers requesting to join.

This operation is useful in scenarios where group administrators want to automate or programmatically control the approval of new members joining a WhatsApp group, such as managing community groups, customer support groups, or event coordination groups.

Example use case:
An organization runs a WhatsApp group for event attendees. When people request to join, the admin can use this node to automatically approve multiple join requests at once by specifying the group ID and the phone numbers of the users to approve.

Properties

Name Meaning
Phone ID Source Select how to provide the Phone ID: either "From Credentials" (uses Phone ID stored in credentials) or "Custom" (enter a custom Phone ID).
Phone ID The WhatsApp instance Phone ID to use when "Custom" is selected as Phone ID Source. Required if using custom.
Group ID The unique identifier of the WhatsApp group (conversation ID ending with @g.us) where join requests will be approved.
Phone Numbers to Approve/Reject Comma-separated list of phone numbers (without @c.us suffix) whose join requests you want to approve. These numbers should be obtained from the group's approval request list.

Output

The node outputs a JSON object representing the response from the Maytapi API after attempting to approve the specified join requests. This typically includes success status and any relevant messages or data returned by the API.

No binary data output is produced by this operation.

Dependencies

  • Requires an active Maytapi WhatsApp API account with valid API credentials.
  • The node needs an API key credential configured in n8n to authenticate requests.
  • The Phone ID must be provided either via credentials or manually as a custom value.
  • Internet access to the Maytapi API endpoint (https://api.maytapi.com/api) is required.

Troubleshooting

  • Missing Phone ID error: If neither credentials nor custom Phone ID is provided, the node throws an error stating "Phone ID is required." Ensure that the Phone ID is correctly set in credentials or entered manually.
  • Invalid Group ID: Providing an incorrect or malformed group ID may cause API errors. Verify the group ID format ends with @g.us.
  • Empty or invalid phone numbers list: The list of phone numbers to approve must be comma-separated without suffixes and must correspond to actual pending join requests. Invalid numbers may cause the API call to fail.
  • API errors: Any errors returned by the Maytapi API (e.g., authentication failure, rate limits) will be surfaced in the node's output. Check your API key validity and usage limits.
  • Network issues: Ensure the n8n instance has network connectivity to the Maytapi API.

Links and References

Discussion