Send to group
POST
/api/v1/ext/groups/{channel}/{id}/messages
Send a message to a group chat.
Auth: Bearer access_token
Scope: groups.write
One attachment per message, 5 MB.
The same send pipeline as *Send message*, with the group as the thread: the message is stored on the group's conversation and delivered by the line the group is on (the WhatsApp line, or the group's Mac). A pending_create iMessage group is created in Messages by this first send. One attachment (an https URL, up to 5 MB) per message. Delivery is asynchronous: the row starts pending.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| channel | path | enum | yes | The group's channel. |
| id | path | string | yes | The group id: a WhatsApp group JID (…@g.us) or an iMessage group key (imsg_group:<n>). |
| message | body | string | no | The text. Required when there is no attachment. |
| attachments | body | string | no | One https URL (image, video, audio or document). |
Responses
| Status | When |
|---|---|
200 | Queued |
400 | Nothing to send, or a bad attachment |
401 | Missing or invalid token |
403 | Missing scope |
404 | Group does not exist or is not the installer's (same response for both) |
409 | The group was left or retired |
502 | The gateway refused the message; the attempt is recorded as failed |
RequestResponses
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/groups/{channel}/{id}/messages" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"message": "Meeting moved to 3pm."
}'Queued
{
"success": true,
"message": "Message queued for delivery.",
"data": {
"id": 84290,
"status": "pending",
"message_id": "84290",
"group_id": "imsg_group:7",
"channel": "imessage",
"queued_at": "2026-11-04T05:00:00.000Z"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters
The group's channel.
The group id: a WhatsApp group JID (…@g.us) or an iMessage group key (imsg_group:<n>).
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/groups/%7Bchannel%7D/%7Bid%7D/messages
Previous
« Leave group
Next
Call readiness »
