For the exhaustive schema-derived catalog, see all examples.
What it is
Handle WhatsApp Business App sent-message synchronization events.Before you begin
- Create a public HTTPS endpoint in your application.
- Configure a YCloud webhook endpoint for the event types you need.
- Store the endpoint signing secret securely.
- Make event processing idempotent.
How it works
YCloud sends an HTTPPOST request when the event occurs. Verify the signature, durably record the event, return a 2xx response, and process slow work asynchronously.
Request
The scenarios below show requests delivered to your webhook URL. Treat the eventid as the delivery identifier and use type to route the payload.
Response
Return a2xx status after accepting the event.
For endpoint setup, signature validation, and retry behavior, see Configure webhooks.
Outbound Text message
In this case, your webhook endpoint received an outbound text message sent by a business customer to a WhatsApp user with the WhatsApp Business app or a supported companion device: Read the sent text fromwhatsappMessage.text.body.
Request
Response
Acknowledge the delivery after durably accepting the event.Explanation
Route the event bytype, deduplicate it by id, and move slow or failure-prone work to an asynchronous processor.
Outbound Image message
In this case, your webhook endpoint received an outbound image message sent by a business customer to a WhatsApp user with the WhatsApp Business app or supported companion device.:- Contains image sent before.
Request
Response
Acknowledge the delivery after durably accepting the event.Explanation
- The
image.linkcan be directly accessed in a few minutes for the convenience of the consumer, but you should always include anX-API-Keyheader to download this file within 30 days.
Outbound Video message
In this case, your webhook endpoint received an outbound video message sent by a business customer to a WhatsApp user with the WhatsApp Business app or supported companion device.:- Contains video sent before.
Request
Response
Acknowledge the delivery after durably accepting the event.Explanation
- The
video.linkcan be directly accessed in a few minutes for the convenience of the consumer, but you should always include anX-API-Keyheader to download this file within 30 days.
Outbound Audio message
In this case, your webhook endpoint received an outbound audio message sent by a business customer to a WhatsApp user with the WhatsApp Business app or supported companion device.:- Contains audio sent before.
Request
Response
Acknowledge the delivery after durably accepting the event.Explanation
- The
audio.linkcan be directly accessed in a few minutes for the convenience of the consumer, but you should always include anX-API-Keyheader to download this file within 30 days.
Outbound Document message
In this case, your webhook endpoint received an outbound document message sent by a business customer to a WhatsApp user with the WhatsApp Business app or supported companion device.:- Contains document sent before.
Request
Response
Acknowledge the delivery after durably accepting the event.Explanation
- The
document.linkcan be directly accessed in a few minutes for the convenience of the consumer, but you should always include anX-API-Keyheader to download this file within 30 days.
Business App message created
Usewhatsapp.smb.message.created when a WhatsApp Business App message is sent.
Request
Response
Acknowledge the delivery after durably accepting the event.Explanation
Read the outbound message fromwhatsappMessage. Its type selects the content object; this text example uses text.body. Route this event separately from whatsapp.smb.message.echoes while sharing message parsing where appropriate. These are Business App coexistence events, not Meta Business Agent echo events.
