Maytapi icon

Maytapi

Integrate with Maytapi WhatsApp Unofficial API

Group → Accept Invite V4

AI-generated

Overview

The "Accept Invite V4" operation of the Maytapi node allows users to accept a WhatsApp group invitation using an invite code and related metadata. This is useful for automating the process of joining WhatsApp groups when you have received an invite link or webhook notification containing the invite details.

Typical use cases include:

  • Automatically joining WhatsApp groups as part of onboarding workflows.
  • Integrating with external systems that send group invites via webhook, enabling seamless acceptance without manual intervention.
  • Managing group memberships programmatically in bulk or triggered by events.

For example, if your system receives a webhook with an invite code, group ID, expiration timestamp, and inviter's identifier, this node operation can accept the invite on behalf of the user or bot.

Properties

Name Meaning
Phone ID Source How to provide the Phone ID: either "From Credentials" (uses stored credentials) or "Custom" (enter manually).
Phone ID The WhatsApp instance Phone ID (required if "Custom" is selected as Phone ID Source).
Invite Code The invite code extracted from the group invite link (required).
Invite Group ID The group identifier for the invitation, typically received from a webhook (required).
Invite Code Expiration Expiration timestamp for the invite code, received from webhook (required).
From Identifier of the user who sent the invitation, received from webhook (required).

Output

The output JSON contains the response from the Maytapi API after attempting to accept the group invite. It typically includes success status and any relevant data returned by the API about the group join action.

No binary data output is produced by this operation.

Example output structure (simplified):

{
  "success": true,
  "message": "Invite accepted successfully",
  "groupId": "905301234567-1574073754@g.us",
  ...
}

Dependencies

  • Requires an active Maytapi API credential with a valid API key and associated phone ID.
  • The Phone ID must be provided either through credentials or custom input.
  • Network access to the Maytapi API endpoint (https://api.maytapi.com/api) is required.

Troubleshooting

  • Missing Phone ID: If no Phone ID is provided or found in credentials, the node will throw an error. Ensure the Phone ID is set correctly.
  • Invalid or expired invite code: The API may reject the invite if the invite code is invalid or expired. Verify the invite code and expiration timestamp.
  • Incorrect group ID or 'from' identifier: These must match the values received from the webhook or invite source; otherwise, the invite acceptance will fail.
  • API errors: Any HTTP or API errors will be surfaced as exceptions. Check API key validity and network connectivity.
  • Continue On Fail: If enabled, errors will be returned in the output JSON instead of stopping execution.

Links and References

Discussion