Create a group
create_groupCreate a WhatsApp group as the account owner, optionally inside a community, and add participants; invite codes are returned for contacts who cannot be added due to privacy settings.
Instructions
Create a WhatsApp group with the account as owner, inside a community when communityId is given. Participants whose privacy settings refuse being added get an invite code instead (see the result).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The group name. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| communityId | No | Create the group inside this community: its group id (`...@g.us`), from list_groups (`community: true`). The account must administer it. | |
| participants | Yes | Contact ids to add: E.164 with + or `lid:<digits>`. | |
| 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. |