{
"id": "9f1c4b6e-3a2d-4f8b-9c1e-2a7d5e8b0c31",
"event": "message.received",
"occurred_at": "2026-07-14T09:30:00+00:00",
"workspace_id": 42,
"data": {
"contact": {
"id": "contact_demo",
"name": "Jordan Lee",
"email": "jordan.lee@example.com",
"phone": "+15550142299",
"platform": "facebook",
"stage": "Lead",
"tags": [
"VIP"
],
"custom_fields": {
"location_interested": "Bellandur"
},
"source": "Messenger ad: 2021 Toyota Corolla LE",
"created_at": "2026-01-15T09:30:00+00:00"
},
"conversation": {
"id": "contact_demo"
},
"message": {
"id": "message_demo",
"text": "Hi, is this still available?",
"type": "text",
"platform": "facebook",
"direction": "inbound",
"received_at": "2026-06-13T10:00:00+00:00",
"referral": {
"source": "ad",
"ad_id": "120214731400140001",
"ad_title": "2021 Toyota Corolla LE",
"body": null,
"photo_url": "https://scontent.xx.fbcdn.net/v/t45.1600-4/corolla.jpg",
"video_url": null,
"thumbnail_url": null,
"source_url": null,
"post_id": "110022003300440_987654321098765",
"product_id": "6543210987654321",
"ref": "spring_inventory",
"ctwa_clid": null
}
}
}
}Inbound message received
Sent to your endpoint when Inbound message received occurs (message.received).
data.message.referral is null on an ordinary message. When the chat came from a Click-to-WhatsApp, Click-to-Messenger or Click-to-Instagram ad (or an m.me / ig.me ref link) it carries the ad, with the same keys on every channel: source (ad, post or link), ad_id, ad_title, body, photo_url, video_url, thumbnail_url, source_url, post_id, product_id (the catalog product a catalog ad showed, e.g. the vehicle the person tapped), ref and ctwa_clid (WhatsApp only). A key Meta did not send is null. Media URLs are Meta CDN links and expire. data.contact.source is the first-touch label, e.g. Messenger ad: 2021 Toyota Corolla LE.
Signed as X-Dmly-Signature: sha256=<hmac> when the endpoint has a secret. Return any 2xx within 8 seconds to acknowledge.
{
"id": "9f1c4b6e-3a2d-4f8b-9c1e-2a7d5e8b0c31",
"event": "message.received",
"occurred_at": "2026-07-14T09:30:00+00:00",
"workspace_id": 42,
"data": {
"contact": {
"id": "contact_demo",
"name": "Jordan Lee",
"email": "jordan.lee@example.com",
"phone": "+15550142299",
"platform": "facebook",
"stage": "Lead",
"tags": [
"VIP"
],
"custom_fields": {
"location_interested": "Bellandur"
},
"source": "Messenger ad: 2021 Toyota Corolla LE",
"created_at": "2026-01-15T09:30:00+00:00"
},
"conversation": {
"id": "contact_demo"
},
"message": {
"id": "message_demo",
"text": "Hi, is this still available?",
"type": "text",
"platform": "facebook",
"direction": "inbound",
"received_at": "2026-06-13T10:00:00+00:00",
"referral": {
"source": "ad",
"ad_id": "120214731400140001",
"ad_title": "2021 Toyota Corolla LE",
"body": null,
"photo_url": "https://scontent.xx.fbcdn.net/v/t45.1600-4/corolla.jpg",
"video_url": null,
"thumbnail_url": null,
"source_url": null,
"post_id": "110022003300440_987654321098765",
"product_id": "6543210987654321",
"ref": "spring_inventory",
"ctwa_clid": null
}
}
}
}Was this page helpful?

