Actions55
- Message Actions
- Contact Actions
- Chat Actions
- Group Actions
- Queue Actions
- Account Actions
- Session Actions
- Session Control Actions
- Call Actions
Group → Revoke Invite
AI-generatedOverview
The "Revoke Invite" operation under the "Group" resource allows users to revoke and regenerate a WhatsApp group invite link. This is useful when you want to invalidate an existing invite link for security or privacy reasons and generate a new one to control who can join the group.
Typical use cases include:
- Preventing unauthorized access by invalidating old invite links.
- Regenerating invite links after a certain period or event.
- Managing group membership invitations dynamically within automated workflows.
For example, if you have shared a group invite link publicly but want to restrict further access, you can use this operation to revoke the current link and create a new one, ensuring only intended participants can join.
Properties
| Name | Meaning |
|---|---|
| Phone ID Source | Select how to provide the Phone ID: either "From Credentials" (uses stored credentials) or "Custom" (enter manually). |
| Phone ID | The WhatsApp instance Phone ID to use. Required if "Custom" Phone ID Source is selected. |
| Group ID | The unique identifier of the WhatsApp group (conversation ID with @g.us suffix) for which the invite link will be revoked. |
Output
The node outputs a JSON object containing the response from the Maytapi API after revoking the invite link. This typically includes details about the new invite link or confirmation that the old link was revoked successfully.
The output structure is:
{
"json": {
// API response data related to the revoked and regenerated invite link
}
}
No binary data is produced by this operation.
Dependencies
- Requires an active connection to the Maytapi WhatsApp Unofficial API.
- Requires an API key credential configured in n8n to authenticate requests.
- The Phone ID must be provided either via credentials or as a custom input.
- Network access to
https://api.maytapi.com/apiis necessary.
Troubleshooting
- Missing Phone ID: If neither credentials nor custom Phone ID is provided, the node will throw an error stating "Phone ID is required." Ensure you provide a valid Phone ID.
- Invalid Group ID: Providing an incorrect or malformed Group ID (not ending with
@g.us) may cause API errors. Verify the Group ID format. - API Errors: If the Maytapi API returns errors (e.g., due to rate limits, invalid tokens, or permissions), the node will throw those errors. Check your API key validity and usage limits.
- Network Issues: Connectivity problems to the Maytapi API endpoint will result in request failures. Confirm network access and proxy settings if applicable.
Links and References
- Maytapi Official Website
- Maytapi WhatsApp API Documentation
- WhatsApp Group Invite Link Management (WhatsApp official FAQ)
This summary focuses on the "Group" resource's "Revoke Invite" operation as requested.