Skip to content

WebhookMessageReferral

Defined in: src/types/webhooks.ts:72

Click to WhatsApp ad attribution, present on a message sent via an ad.

https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/reference/messages/text

optional body?: string

Defined in: src/types/webhooks.ts:80

The ad primary text.


optional ctwa_clid?: string

Defined in: src/types/webhooks.ts:92

The ad click ID. Omitted for WhatsApp Status ad placements.


optional headline?: string

Defined in: src/types/webhooks.ts:82

The ad headline.


optional image_url?: string

Defined in: src/types/webhooks.ts:86

The ad image URL, for image ads.


optional media_type?: string

Defined in: src/types/webhooks.ts:84

The ad media type, image or video.


optional source_id?: string

Defined in: src/types/webhooks.ts:76

The ad ID.


optional source_type?: string

Defined in: src/types/webhooks.ts:78

The source type, e.g. ad.


optional source_url?: string

Defined in: src/types/webhooks.ts:74

The ad URL.


optional thumbnail_url?: string

Defined in: src/types/webhooks.ts:90

The ad video thumbnail URL, for video ads.


optional video_url?: string

Defined in: src/types/webhooks.ts:88

The ad video URL, for video ads.


optional welcome_message?: object

Defined in: src/types/webhooks.ts:94

The ad greeting text.

optional text?: string

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.