1. First-Message referral.ctwa_clid in WhatsApp Cloud API Webhook
Meta includes referral only on the first inbound message after clicking an ad; follow-up replies omit this object.
{
"entry": [{
"changes": [{
"value": {
"metadata": { "phone_number_id": "10987654321" },
"messages": [{
"from": "14155550199",
"id": "wamid.HBgLMTQxNTU1NTAxOTk...",
"timestamp": "1795358100",
"type": "text",
"text": { "body": "Hi, can I get pricing details?" },
"referral": {
"source_url": "https://fb.me/xyz...",
"source_id": "120214598374120312",
"source_type": "ad",
"ctwa_clid": "ARAkP8x9sL2mQ...",
"headline": "Request a Custom Quote"
}
}]
}
}]
}]
}