Create a WhatsApp group with an API
How to create a WhatsApp group with an API: Meta's Groups API request and invite link, the linked-device route with groups:create, and uncertain results.
Short answer
With Meta's Cloud API, create a group with POST /<BUSINESS_PHONE_NUMBER_ID>/groups; you receive an invite link by webhook, cannot add anyone directly, and the group holds at most 8 participants.
With a linked-device API such as SuperSkope, POST /api/v1/groups creates a normal group from your existing number with up to 20 initial members, under a separate groups:create permission. Never retry an uncertain creation.
Create a group: official API vs linked device
Both routes can create a group. What you get afterwards is very different.
| Meta Cloud API | SuperSkope (linked device) | |
|---|---|---|
| Endpoint | POST /<BUSINESS_PHONE_NUMBER_ID>/groups | POST /api/v1/groups |
| Subject length | Up to 128 characters | 1 to 100 characters |
| Initial members | None. You get an invite link | Up to 20 phone numbers or participant IDs |
| Group size | Up to 8 participants | Up to WhatsApp's 1,024-member limit |
| Result | group_lifecycle_update webhook with invite_link | groupId, plus whether an owner grant is still needed |
| Eligibility | Official Business Account on a Cloud API number | A linked number and a key with groups:create |
Create a group with Meta's Groups API
Send the subject, an optional description and an optional join_approval_mode. With "approval_required", people who tap the link become join requests that you approve or reject by API; the default, "auto_approve", lets them straight in. The response does not contain the link: it arrives in a group_lifecycle_update webhook, so your webhook handler must be live first.
curl "https://graph.facebook.com/v27.0/<BUSINESS_PHONE_NUMBER_ID>/groups" \
-H "Authorization: Bearer $META_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"messaging_product": "whatsapp",
"subject": "Sharma family: Goa trip, 12 Dec",
"description": "Planner and on-ground coordinator for your trip.",
"join_approval_mode": "approval_required"
}'Copy-only example. This page never runs a request or asks for a credential.
Invite people to the official group
Meta's API cannot add anyone. After creation, send the invite link through one of three routes: in an existing 1:1 conversation, with the utility template "Group invite upon request" from Template Library, or with your own marketing template. When you send the library template, pass the group ID as a group_id parameter and WhatsApp turns it into the link on delivery. Template approval can take up to 24 hours, and editing the library template loses its utility pricing.
- Invite links always start with https://chat.whatsapp.com/.
- Resetting the link with POST /<GROUP_ID>/invite_link invalidates every earlier link.
- The business number that created the group is always its creator and admin.
- A person you removed cannot rejoin through the link.
Create a group from your existing number with SuperSkope
SuperSkope creates the group from the linked number itself, so it behaves like a group created on the phone: the number is the admin and initial members are added directly. Only add people who expect it. Adding strangers is one of the quickest ways to get reported.
curl -X POST "https://api.superskope.com/api/v1/groups" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-H "Idempotency-Key: depot-pune-east-create" \
-H "Content-Type: application/json" \
-d '{"subject":"Pune East depot: drivers","participants":["919800000001@c.us","919800000002@c.us"]}'Copy-only example. This page never runs a request or asks for a credential.
Why creating a group does not give you access to it
groups:create is a phone-wide permission, separate from the list of groups a key may use. On its own it lets a key create groups but not read, message or manage them. The response says requiresOwnerChatGrant: true, and an owner then selects the new group for the key.
For unattended workflows, the owner can also select groups:created ("Access groups created by this key") when issuing the key. Then each creation that the server verifies as completed gets a durable grant for that key before the response returns, and requiresOwnerChatGrant is false. That grant gives access only: reading still needs groups:read, sending needs messages:write, and changes need their own group scopes. It never covers groups made by another key, groups made on the phone, or results that were not confirmed. Each key can hold up to 1,000 created-group grants and pending reservations.
Handle an uncertain creation without making duplicates
Group creation is the operation most likely to go wrong in code that retries automatically. If the network drops after WhatsApp created the group but before your server got the answer, a naive retry creates a second group with the same people, and those members now see two groups.
- Generate one idempotency key per intended group (for example, the depot or trip ID) and store it before calling.
- If the response is "completed", save the groupId against your record.
- If the response is "unknown" or the call timed out, stop. Repeating the same key returns the saved result; it never creates again.
- Check the linked number's group list or ask an admin to look on the phone before deciding anything.
- Only after confirming no group exists should a person approve a new attempt with a new key.
SuperSkope never retries an uncertain creation automatically and reserves the key's capacity until the result is resolved.
Next step
Decide what the group is for. A small customer-facing group of 8 or fewer that your business starts is a good fit for Meta's Groups API. An internal or partner group from your existing number needs a linked-device API: create one test group with two colleagues, check the result in the app, then wire it into your system. SuperSkope connects your existing number as a WhatsApp linked device (the same way WhatsApp Web works). It is not the official WhatsApp Business Platform and is not affiliated with WhatsApp or Meta.
Frequently asked questions
Can I create a WhatsApp group with the API and add members at the same time?
Not with Meta's Groups API, which creates an empty group and returns an invite link. A linked-device API can pass initial participants: SuperSkope accepts up to 20. Adding people directly still depends on their privacy settings, and people who did not expect to be added may report the number.
How many WhatsApp groups can I create with the API?
Meta allows up to 10,000 groups per business number on the Groups API. WhatsApp publishes no limit for regular numbers, but creating many groups quickly is a spam signal; users of open-source linked-device tools have reported temporary bans with a "too many groups" reason. SuperSkope limits each key to 1,000 created-group grants.
Who is the admin of a group created through the API?
On Meta's Groups API, the business number that created the group is always its creator and admin. On a linked-device API, the linked number is the creator and admin, exactly as if the group had been created on the phone, and it can promote other members to admin.
Can I set a group photo and description when creating a group?
Meta's create request takes a subject and description; the photo is set afterwards with POST /<GROUP_ID>, as a square JPEG of at least 192 by 192 pixels and up to 5 MB. In SuperSkope, set the description and photo after creation with group actions under groups:profile.
Sources
- Meta for Developers: Group management reference
- Meta for Developers: Get started with Groups API
- Meta for Developers: Groups API overview and quick facts
- Meta for Developers: Groups API FAQ
- SuperSkope API reference
- WAHA issue #2317: temporary ban reason codes
- WhatsApp Help Center: How to create and invite into a group