Skip to main content
Use whatsapp.message.updated to handle this event at your webhook endpoint.

Triggers

Occurs when a WhatsApp outbound message status is updated, and the status changes to sent, failed, delivered, or read. Subscribe to whatsapp.message.updated when you configure your webhook endpoint. Use whatsappMessage for individual message updates. Group message status updates can include whatsappGroup. Route the payload before reading message-specific fields.

Syntax

YCloud sends an HTTP POST request to your configured webhook URL. The following shape shows one payload variant. Angle-bracket values are placeholders; their types are listed under Parameters. Optional fields and other variants are described below.

Parameters

Validate the YCloud-Signature HTTP header before you process the JSON body. See signature validation.

Event envelope

Event payload

The four common envelope fields are required. Payload fields depend on the event variant. In each object table, Required applies when its parent object is present. Optional fields can be omitted; a sample does not make a field required.

whatsappMessage

Message content by type
Use whatsappMessage.type to find the matching message content object below. For contacts, each array item has the fields shown under contacts[].
Customer profile, conversation, context, and errors
These objects provide recipient details, conversation information, reply context, and error details when present.

whatsappGroup

Example

The following JSON is the body delivered to your receiver. IDs, phone numbers, and other account values are illustrative.
This message status update includes pricingCategory: authentication_international. At the sent stage, pricingCategory and totalPrice are estimates. Use the delivered or read update for the final pricing category and charge. The amount below is illustrative.For account eligibility changes, see Authentication-international rate eligibility.
After verifying the signature and durably accepting the event, return a 2xx response. Process slow work asynchronously.
For scenario walkthroughs, see annotated examples, annotated examples.