Groups on are invite-only, meaning that potential group participants are ultimately in control of whether they want to join the group or not.
When you create a group, a unique invite link that is generated which you can share to potential group participants. This link includes information about the group, enabling users to make an informed decision about whether or not they want to join the group.
Once a user joins the group, a webhook is triggered, signaling that you are now eligible to send messages to the group.
For a complete overview of available features, see the Groups API Features below.
How to start using groups
Prerequisites
Before you get started with the Groups API, ensure that:
Your business number is in use with Cloud API (not the WhatsApp Business app).
Your webhook server is set up for use with Cloud API.
Your app is subscribed to the following groups webhook fields:
group_lifecycle_update
group_participants_update
group_settings_update
group_status_update
Your app is subscribed to the WhatsApp Business Account of your business phone number.
Your app has the whatsapp_business_messaging permission for the business number.
Step 2: Create a group
Use the Create Group endpoint to create a group, providing a subject and an optional description. Once a group has been successfully created, a group_lifecycle_update webhook for successful group creation will be returned. This webhook will include a invite_link field with the invite link that you can now share with potential group participants.
Step 3: Invite WhatsApp users to the group
3.1 Add a group invite link template in Template Library to your account templates: