# Send a message to a WhatsApp group with an API

How to send a message to a WhatsApp group with an API: the official Cloud API request, a linked-device request with mentions, permissions and safe retries.

Canonical URL: https://superskope.com/blog/send-message-whatsapp-group-api
Updated: 2026-11-27
Author: SuperSkope

## Short answer

To send a message to a WhatsApp group with Meta's Cloud API, POST to /<PHONE_NUMBER_ID>/messages with "recipient_type": "group" and the group ID, which works only for groups your business created through the Groups API (up to 8 people).

To send to an existing group, the number must be a member and you need a linked-device API; in SuperSkope that is POST /api/v1/chats/{chatId}/messages with messages:write and an Idempotency-Key.

## Two ways to send, compared

The request you write depends on which kind of group you are sending to.

|  | Meta Cloud API | SuperSkope (linked device) |
| --- | --- | --- |
| Which groups | Only groups your business created through the Groups API, up to 8 people | Groups the linked number already belongs to, up to 1,024 members |
| Endpoint | POST /<PHONE_NUMBER_ID>/messages with "recipient_type": "group" | POST /api/v1/chats/{chatId}/messages |
| Group identifier | Group ID returned by the Groups API | Group chat ID ending in @g.us |
| Content | Text, media and templates; no interactive messages | Text up to 4,000 characters, files up to 5 MiB, quoted replies, up to 20 mentions |
| Permission | whatsapp_business_messaging on the app | messages:write on a key that has the group selected |
| Cost | Per delivered recipient | Plan subscription |

## Send to a group with the official Cloud API

Create the group first and wait until at least one person has joined through the invite link; the group_participants_update webhook tells you when. Then send with the group ID you received when the group was created. Status webhooks report sent, delivered, read and failed with "recipient_type": "group".

> Each billable message is charged once per member it reaches. Since 1 Oct 2026 utility messages in an open group window are charged as well, so batch updates instead of sending many small messages.

```
curl "https://graph.facebook.com/v27.0/<PHONE_NUMBER_ID>/messages" \
  -H "Authorization: Bearer $META_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "messaging_product": "whatsapp",
    "recipient_type": "group",
    "to": "<GROUP_ID>",
    "type": "text",
    "text": { "body": "Pickup moved to 6:30 pm at Gate 2." }
  }'
```

Copy-only example. No request is run by this page.

## Send to an existing group with SuperSkope

For a group your team already uses, the number has to be a member of it. In SuperSkope the workspace owner creates an API key, selects the exact groups it may use, and grants messages:write. Reading group details needs groups:read. Every send needs an Idempotency-Key that you generate and store before calling the API.

1. List the groups available to your key with GET /api/v1/groups and pick the group by its ID, not its name.
2. Generate an idempotency key for this logical message (for example, the order ID plus "dispatch") and save it.
3. POST the message to /api/v1/chats/{chatId}/messages with that key in the Idempotency-Key header.
4. Read the result. "sent" means WhatsApp accepted the message; delivery and read receipts arrive later and can be unavailable.
5. If the call timed out or returned "unknown", look up the original request with GET /api/v1/requests/{requestId} before deciding anything. Do not send again with a new key.

```
curl -X POST "https://api.superskope.com/api/v1/chats/120363000000000000@g.us/messages" \
  -H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
  -H "Idempotency-Key: order-48213-dispatch" \
  -H "Content-Type: application/json" \
  -d '{"type":"text","text":"Order 48213 is out for delivery. ETA 4:30 pm."}'
```

Copy-only example. No request is run by this page.

- [Read the developer documentation](https://docs.superskope.com/)
- [Webhook retries without duplicate actions](https://superskope.com/blog/webhook-retries-without-duplicates)

## Mention people in a group message

Text messages can mention up to 20 current members of that group. Put each member's exact ID in mentions and include a matching @number token in the text. The server checks membership before submitting, and there is no implicit "everyone" mention, which protects large groups from accidental mass pings.

```
import { SuperSkope } from '@superskope/sdk';

const client = new SuperSkope({
  origin: 'https://api.superskope.com',
  apiKey: process.env.SUPERSKOPE_API_KEY,
});

const result = await client.sendText(
  '120363000000000000@g.us',
  '@919800000001 please confirm the 6 am pickup.',
  { idempotencyKey: 'trip-1182-pickup-confirm', mentions: ['919800000001@c.us'] }
);
// result.state is 'sent' or 'unknown'. Never resend an unknown result with a new key.
console.log(result.state, result.requestId);
```

Copy-only example. No request is run by this page.

## Send files and recurring updates

Files use the same endpoint with type pdf, image, document, audio or video, base64 data, a filename and an optional caption of up to 1,000 characters. For updates that repeat, such as a daily dispatch summary or a weekly fee reminder, use a schedule instead of your own cron job: schedules:write lets a key create, pause, skip or remove schedules only for its selected groups, and each change must include the schedule's current updated_at value so two people cannot overwrite each other.

## Mistakes that cause duplicate or misdirected group messages



- Targeting a group by name. Two groups can share a name, and names change. Store the group ID.
- Retrying on timeout with a fresh idempotency key. The first message may already be in the group.
- Treating "sent" as "delivered". In large groups, delivery receipts are partial and can be missing.
- Sending the same text to dozens of groups at once. That pattern looks like bulk messaging, which WhatsApp's terms prohibit, and members report it.
- Posting internal notes to a customer group because one variable was wrong. Keep internal and customer groups on different keys where possible.

- [Group API integration checklist](https://superskope.com/blog/whatsapp-group-api-checklist)
- [Why a participant ID is not always a phone number](https://superskope.com/blog/whatsapp-participant-names-and-ids)

## Rate limits to plan for

SuperSkope keys default to 60 requests a minute and 10,000 a day, with writes limited to 10 a minute and 1,000 a day per key; owners can lower these. The linked number also has a shared limit of ten sends a minute. On Meta's side, group sends follow your number's messaging limits and pricing. Design queues so a burst of events becomes one summary message rather than ten separate ones.

## Next step

If the group already exists and your number is in it, connect the number, create a key with only messages:write and the one group selected, and send a test message to a group of colleagues. If you are creating new small customer groups, start with Meta's Groups API. 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.

- [WhatsApp group API product page](https://superskope.com/whatsapp-group-api)
- [SuperSkope WhatsApp API](https://superskope.com/whatsapp-api)
- [WhatsApp group API: what is possible in 2026](https://superskope.com/blog/whatsapp-group-api)

## Frequently asked questions

**How do I find a WhatsApp group ID?** With Meta's Groups API, the group ID comes back when you create the group and appears in group webhooks. You can also list active groups with GET /<PHONE_NUMBER_ID>/groups. With a linked-device API, list the groups the number belongs to; group chat IDs end in @g.us. In SuperSkope, GET /api/v1/groups returns only the groups selected for your key.

**Can I send a WhatsApp group message without the Business API?** Yes, through a linked-device API that connects a regular number the way WhatsApp Web does. It can post to any group the number belongs to. WhatsApp does not authorise this kind of automation and its terms prohibit bulk and automated messaging, so keep it to low-volume operational messages that members expect.

**Can I @mention everyone in a WhatsApp group through the API?** SuperSkope does not support an implicit everyone mention. You can mention up to 20 named current members per text message, each with a matching @number in the text. Meta's Cloud API documentation for groups does not describe mentions. Mass mentions in large groups are a common reason members mute or report a number.

**Why did my group message send twice?** Usually because a request timed out and the code retried with a new idempotency key, or because a webhook was processed twice. Reuse the same key for the same logical message, store webhook event IDs to drop duplicates, and inspect an unknown result before deciding to send again.

## Sources



- [Meta for Developers: Group messaging](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/groups-messaging)
- [Meta for Developers: Get started with Groups API](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/get-started)
- [Meta for Developers: Groups API pricing](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups/pricing)
- [Meta for Developers: Groups API overview and quick facts](https://developers.facebook.com/documentation/business-messaging/whatsapp/groups)
- [SuperSkope API reference](https://docs.superskope.com)
- [WhatsApp Terms of Service](https://www.whatsapp.com/legal/terms-of-service)
- [WhatsApp Help Center: Unauthorized use of automated or bulk messaging](https://faq.whatsapp.com/5957850900902049)

## Continue reading

- [WhatsApp group management, through an API.](https://superskope.com/whatsapp-group-api)
- [Handle WhatsApp webhook retries without duplicate replies.](https://superskope.com/blog/webhook-retries-without-duplicates)
- [WhatsApp group API: what is possible in 2026](https://superskope.com/blog/whatsapp-group-api)
