Skip to main content
POST

Authorizations

X-API-Key
string
header
required

Body

application/json

Provide the group ID from the WhatsApp Groups API. Omit to and recipient.

Marketing templates can use Marketing Messages Lite (MM Lite) when the WhatsApp Business Account is eligible and at least one recipient has an MM Lite price. Member records use group_marketing_lite on this channel.

For Cloud API and MM Lite, YCloud estimates a missing member price using the highest available price in the group on the selected channel. If no recipient has a price, YCloud rejects the request.

from
string
required

Sender phone number in E.164 format.

Example:

"+16315551111"

groupId
string
required

WhatsApp group ID returned by the Groups API.

Example:

"Y2FwaV9ncm91cDpFWEFNUExFX0dST1VQX0lE"

type
enum<string>
required

Supported group-message content type.

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

Required for template. Use a marketing or utility template. Meta validates its components.

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

YCloud accepted the message. The response includes its ID and an empty recipients array.

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:

"Y2FwaV9ncm91cDpFWEFNUExFX0dST1VQX0lE"

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

Overall send status. accepted means YCloud accepted the request. Meta reports sent, failed, or expired for the group. Check recipients for member delivery statuses.

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

Complete send-time recipient list on retrieval. Empty in the send response or when YCloud could not capture the recipient list.

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. Marketing uses group_marketing for both channels.

Available options:
group_marketing,
group_utility,
group_service
groupMemberCount
integer

Number of group participants at send time, including the business sender. Omitted when the recipient list is unavailable.

recipientCount
integer

Number of recipient members in the send-time list, from 1 to 8. Omitted when the list is unavailable.

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"