Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Body

application/json

Outbound group-message request. Do not provide an individual to or recipient; YCloud obtains and fixes the recipient snapshot from groupId before sending.

Only marketing templates can use the MM Lite channel. When selected, member records use group_marketing_lite; utility and service messages keep group_utility and group_service. A missing price for the selected channel does not fall back to the other channel and that member is not pre-frozen.

from
string
required

Sender phone number in E.164 format.

Example:

"+16315551111"

groupId
string
required

WhatsApp group ID returned by the Groups API.

Example:

"120363345678901234@g.us"

type
enum<string>
required

Supported group-message content type.

Available options:
text,
image,
video,
audio,
document,
sticker,
template
template
object

Required for template. Authentication, interactive, and commerce template content is not supported.

text
object

Required for text.

image
object

Required for image.

video
object

Required for video.

audio
object

Required for audio.

document
object

Required for document.

sticker
object

Required for sticker.

externalId
string

Optional customer-defined identifier used for reconciliation.

Response

The group message is accepted for its fixed recipient snapshot.

One outbound group message. Group-level status is separate from member delivery results.

id
string
required

YCloud group-message ID.

Example:

"wam_group_01"

from
string
required

Sender phone number in E.164 format.

Example:

"+16315551111"

groupId
string
required

WhatsApp group ID.

Example:

"120363345678901234@g.us"

type
enum<string>
required
Available options:
text,
image,
video,
audio,
document,
sticker,
template
status
enum<string>
required

Group-level send status. accepted means YCloud accepted the request; sent and failed come from the group-level Meta result. expired may be returned when Meta reports expiry, but Group Message Logs filters expose only sent and failed.

Available options:
accepted,
sent,
failed,
expired
createTime
string<date-time>
required
direction
enum<string>
required
Available options:
outbound
recipients
object[]
required

Complete fixed recipient snapshot. Empty when the message failed before a reliable snapshot was obtained.

wamid
string

WhatsApp group-level message ID when Meta accepted the request.

Example:

"wamid.HBg..."

groupName
string

Group name captured for the message log.

Example:

"New Purchase Inquiry"

externalId
string

Customer-defined identifier from the send request.

template
object

Use for sending a WhatsApp template message.

text
object

WhatsApp Message Text Object.

image
object

Use for image, gif, video, audio, document, or sticker messages. See also Supported Media Types.

Note: Either id or link must be provided, but not both. These parameters are mutually exclusive.

Reference: WhatsApp Cloud API Media Object

video
object

Use for image, gif, video, audio, document, or sticker messages. See also Supported Media Types.

Note: Either id or link must be provided, but not both. These parameters are mutually exclusive.

Reference: WhatsApp Cloud API Media Object

audio
object

Use for image, gif, video, audio, document, or sticker messages. See also Supported Media Types.

Note: Either id or link must be provided, but not both. These parameters are mutually exclusive.

Reference: WhatsApp Cloud API Media Object

document
object

Use for image, gif, video, audio, document, or sticker messages. See also Supported Media Types.

Note: Either id or link must be provided, but not both. These parameters are mutually exclusive.

Reference: WhatsApp Cloud API Media Object

sticker
object

Use for image, gif, video, audio, document, or sticker messages. See also Supported Media Types.

Note: Either id or link must be provided, but not both. These parameters are mutually exclusive.

Reference: WhatsApp Cloud API Media Object

updateTime
string<date-time>
sendTime
string<date-time>

Present after the group-level status reaches sent.

groupMessageType
enum<string>

Group-level business pricing category reported by Meta.

Available options:
group_marketing,
group_utility,
group_service
groupMemberCount
integer

Total group participant count at send time, including the business sender. Omitted when no reliable snapshot was obtained.

recipientCount
integer

Fixed count of recipient members at send time. Later membership changes do not alter it. Omitted when no reliable snapshot was obtained.

sent
integer

Members currently in sent status.

delivered
integer

Members currently in delivered or read status.

read
integer

Members currently in read status.

failed
integer

Members currently in failed or expired status.

errorCode
string

Group-level failure code.

errorMessage
string

Group-level failure message.

totalPrice
number<double>

Sum of final member charges when every member charge is known and uses the same currency. Zero is a valid final total.

currency
string

ISO 4217 currency for totalPrice.

Example:

"USD"