Join groups and handle join requests
manage_group_joinsPreview invite links, join WhatsApp groups, and manage pending join requests by listing, approving, or rejecting them as an admin.
Instructions
Joining groups: preview the group behind an invite link, join it, and, in a group that needs approval to join, list, approve or reject the pending requests (the account must be an admin).
Actions:
preview_invite: The group behind an invite code or link, without joining: name, description, size.join: Join a group with an invite code or link. Returns the group id; a group that needs approval makes it a pending request instead.list_requests: Pending requests to join the group.approve_requests: Let these people in. Each result says whether it worked.reject_requests: Turn these requests down. Each result says whether it worked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The invite code, or the full invite link (`https://chat.whatsapp.com/...`, `https://whatsapp.com/channel/...`). Required for `preview_invite`, `join`. | |
| limit | No | Page size, 1 to 100. Default 20. Optional for `list_requests`. | |
| action | Yes | What to do. See the list of actions in the tool description. | |
| cursor | No | `nextCursor` from the previous page, to get the next one. Optional for `list_requests`. | |
| groupId | No | The group id (`...@g.us`), from list_groups. Required for `list_requests`, `approve_requests`, `reject_requests`. | |
| accountId | No | The wuapi account id of the linked number to act as (from list_accounts). Required for every action. | |
| contactIds | No | 1 to 256 contact ids of people who asked to join. Required for `approve_requests`, `reject_requests`. | |
| idempotencyKey | No | Optional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice. Optional for `join`. |