Coexistence Webhooks
Here you will find information about history webhooks and message echoes for businesses that have been onboarded to both the WhatsApp Business App and the WhatsApp Cloud API simultaneously.
History webhook
{
"id": "<EVENT_ID>",
"event": "history",
"data": {
"id": "<WABA_ID>",
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "<BUSINESS_PHONE_NUMBER>",
"phone_number_id": "<BUSINESS_PHONE_NUMBER_ID>"
},
"history": [
{
"metadata": {
"phase": "<PHASE>", // Add appropriate phase value
"chunk_order": <CHUNK_ORDER>,
"progress": "<PROGRESS_VALUE>" // Add appropriate progress value
},
"threads": [
{
"id": "<WHATSAPP_USER_PHONE_NUMBER>",
"messages": [
{
"from": "<BUSINESS_OR_WHATSAPP_USER_PHONE_NUMBER>",
"to": "<WHATSAPP_USER_PHONE_NUMBER>", // Only included if SMB message echo
"id": "<WHATSAPP_MESSAGE_ID>",
"timestamp": "<DEVICE_TIMESTAMP>",
"type": "<MESSAGE_TYPE>",
"<MESSAGE_TYPE>": {
"<MESSAGE_CONTENTS>" // Fill in message contents specifics
},
"history_context": {
"status": "<MESSAGE_STATUS>"
}
}
// Additional message objects in thread would follow, if any
]
}
// Additional chat history thread objects would follow, if any
]
}
]
}
}SMB App State sync webhook
SMB Message Echoes webhook
Last updated
Was this helpful?