get_group_invite_link
Retrieve a WhatsApp group's current invite link, or revoke the existing link and generate a new one by setting reset=true. Requires admin privileges.
Instructions
Return a group's current invite link, or revoke and mint a fresh one when reset=true. Warning: reset=true permanently invalidates the previous link — anyone holding a previously-shared copy can no longer use it to join, and there is no undo. Prerequisite: admin. Use join_group_with_link to consume an invite. Returns a JSON object {link} containing the active invite URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_jid | Yes | WhatsApp JID: individual as `<digits>@s.whatsapp.net` or bare phone digits, group as `<digits>-<timestamp>@g.us` | |
| reset | No | if true, permanently revoke the existing invite link and mint a new one (defaults to false); previously-shared copies stop working |