# Image messages webhook reference
This reference describes trigger events and payload contents for the Messaging account **messages** webhook for messages containing an image.
## Triggers
- A WhatsApp user sends an image to a business.
- A WhatsApp user forwards an image message to a business.
- A WhatsApp user forwards an [interactive reply button message to a business](https://developers.facebook.com/documentation/business-messaging/whatsapp/messages/interactive-reply-buttons-messages).
- A WhatsApp user sends an image to a business via a Click to WhatsApp ad.
## Syntax
```html
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "<WHATSAPP_BUSINESS_ACCOUNT_ID>",
"changes": [
{
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "<BUSINESS_DISPLAY_PHONE_NUMBER>",
"phone_number_id": "<BUSINESS_PHONE_NUMBER_ID>"
},
"contacts": [
{
"profile": {
"name": "<WHATSAPP_USER_PROFILE_NAME>",
"username": "<USERNAME>" <!-- only included if user has adopted a username -->
},
"wa_id": "<WHATSAPP_USER_ID>", <!-- omitted if user's phone number is unavailable -->
"user_id": "<BSUID>",
"parent_user_id": "<PARENT_BSUID>", <!-- only included if parent BSUIDs enabled -->
"identity_key_hash": "<IDENTITY_KEY_HASH>" <!-- only included if identity change check enabled -->
}
],
"messages": [
{
"from": "<WHATSAPP_USER_PHONE_NUMBER>", <!-- omitted if user's phone number is unavailable -->
"from_user_id": "<BSUID>",
"from_parent_user_id": "<PARENT_BSUID>", <!-- only included if parent BSUIDs enabled -->
"id": "<WHATSAPP_MESSAGE_ID>",
"timestamp": "<WEBHOOK_TRIGGER_TIMESTAMP>",
"type": "image",
"image": {
"caption": "<MEDIA_ASSET_CAPTION>",
"mime_type": "<MEDIA_ASSET_MIME_TYPE>",
"sha256": "<MEDIA_ASSET_SHA256_HASH>",
"id": "<MEDIA_ASSET_ID>",
"url": "<MEDIA_ASSET_URL>"
},
<!-- only included if message was forwarded to business by a user -->
"context": {
"forwarded": true, <!-- only if forwarded 5 times or less -->
"frequently_forwarded": true <!-- only if forwarded more than 5 times -->
},
<!-- only included if message sent via a Click to WhatsApp ad -->
"referral": {
"source_url": "<AD_URL>",
"source_id": "<AD_ID>",
"source_type": "ad",
"body": "<AD_PRIMARY_TEXT>",
"headline": "<AD_HEADLINE>",
"media_type": "<AD_MEDIA_TYPE>",
"image_url": "<AD_IMAGE_URL>",
"video_url": "<AD_VIDEO_URL>",
"thumbnail_url": "<AD_VIDEO_THUMBNAIL>",
"ctwa_clid": "<AD_CLICK_ID>",
"welcome_message": {
"text": "<AD_GREETING_TEXT>"
}
}
}
]
},
"field": "messages"
}
]
}
]
}
```
**Warning:** Use `user_id` and `from_user_id` to identify the WhatsApp user. `wa_id` and `from` are omitted when the user has adopted a username and their phone number is unavailable, so an integration that relies only on the phone number will not be able to process those messages. See [Business-scoped user IDs](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids).
## Parameters
| Placeholder | Description | Example value |
| --- | --- | --- |
| `<AD_CLICK_ID>`<br><br>_String_ | Click to WhatsApp ad click ID.<br><br>The `ctwa_clid` property is omitted entirely for messages originating from an ad in WhatsApp Status ([WhatsApp Status ad placements](https://www.facebook.com/business/help/1074444721456755)). | `Aff-n8ZTODiE79d22KtAwQKj9e_mIEOOj27vDVwFjN80dp4_0NiNhEgpGo0AHemvuSoifXaytfTzcchptiErTKCqTrJ5nW1h7IHYeYymGb5K5J5iTROpBhWAGaIAeUzHL50` |
| `<AD_GREETING_TEXT>`<br><br>_String_ | Click to WhatsApp ad greeting text. | `Hi there! Let us know how we can help!` |
| `<AD_HEADLINE>`<br><br>_String_ | Click to WhatsApp ad headline. | `Chat with us` |
| `<AD_ID>`<br><br>_String_ | Click to WhatsApp ad ID. | `120226305854810726` |
| `<AD_IMAGE_URL>`<br><br>_String_ | Click to WhatsApp ad image URL. Only included if the ad is an image ad. | `https://scontent.xx.fbcdn.net/v/t45.1...` |
| `<AD_MEDIA_TYPE>`<br><br>_String_ | Click to WhatsApp ad media type. Values can be:<br><br>`image` — Indicates an image ad.<br><br>`video` — Indicates a video ad. | `image` |
| `<AD_PRIMARY_TEXT>`<br><br>_String_ | Click to WhatsApp ad primary text. | `Summer succulents are here!` |
| `<AD_URL>`<br><br>_String_ | Click to WhatsApp ad URL. | `https://fb.me/3cr4Wqqkv` |
| `<AD_VIDEO_THUMBNAIL>`<br><br>_String_ | Click to WhatsApp ad video thumbnail URL. Only included if ad is a video ad. | `https://scontent.xx.fbcdn.net/v/t45.3...` |
| `<AD_VIDEO_URL>`<br><br>_String_ | Click to WhatsApp ad video URL. Only included if ad is a video ad. | `https://scontent.xx.fbcdn.net/v/t45.2...` |
| `<BSUID>`<br><br>_String_ | WhatsApp user's [business-scoped user ID](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#business-scoped-user-id) (BSUID). Included whether or not the user has adopted a username. Use it to identify the user and to send messages to them when their phone number is unavailable. | `US.13491208655302741918` |
| `<BUSINESS_DISPLAY_PHONE_NUMBER>`<br><br>_String_ | Business display phone number. | `15550783881` |
| `<BUSINESS_PHONE_NUMBER_ID>`<br><br>_String_ | Business phone number ID. | `106540352242922` |
| `<IDENTITY_KEY_HASH>`<br><br>_String_ | Identity key hash. Only included if you have enabled the [identity change check](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/phone-numbers) feature. | `DF2lS5v2W6x=` |
| `<MEDIA_ASSET_CAPTION>`<br><br>_String_ | Media asset caption text. | `Taj Mahal` |
| `<MEDIA_ASSET_ID>`<br><br>_String_ | Media asset ID. You can [perform a GET on this ID](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/media) to get the asset URL, then perform a GET on the returned URL (using your access token) to get the underlying asset. | `1003383421387256` |
| `<MEDIA_ASSET_MIME_TYPE>`<br><br>_String_ | Media asset MIME type. | `image/jpeg` |
| `<MEDIA_ASSET_SHA256_HASH>`<br><br>_String_ | Media asset SHA-256 hash. | `SfInY0gGKTsJlUWbwxC1k+FAD0FZHvzwfpvO0zX0GUI=` |
| `<MEDIA_ASSET_URL>`<br><br>_String_ | **This JSON property is being released to developers gradually over several weeks, starting November 12, 2025, and may not be available to you immediately.**<br><br>Media URL. You can query this URL directly with your access token to [download the media asset](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/media#download-media). | `https://lookaside.fbsbx.com/whatsapp_business/attachments/?mid=133...` |
| `<PARENT_BSUID>`<br><br>_String_ | WhatsApp user's [parent business-scoped user ID](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#parent-business-scoped-user-ids). Only included if your business portfolio is enrolled in parent BSUIDs. | `US.ENT.11815799212886844830` |
| `<USERNAME>`<br><br>_String_ | WhatsApp user's [username](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#user-usernames). Only included if the user has adopted a username. | `realsheenanelson` |
| `<WEBHOOK_TRIGGER_TIMESTAMP>`<br><br>_String_ | Unix timestamp indicating when the webhook was triggered. | `1739321024` |
| `<WHATSAPP_BUSINESS_ACCOUNT_ID>`<br><br>_String_ | Messaging account ID. | `102290129340398` |
| `<WHATSAPP_MESSAGE_ID>`<br><br>_String_ | WhatsApp message ID. | `wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQUFERjg0NDEzNDdFODU3MUMxMAA=` |
| `<WHATSAPP_USER_ID>`<br><br>_String_ | WhatsApp user ID. Note that a WhatsApp user's ID and phone number may not always match. Omitted if the user has adopted a username and their phone number is unavailable. See [Phone numbers](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#phone-numbers). | `16505551234` |
| `<WHATSAPP_USER_PHONE_NUMBER>`<br><br>_String_ | WhatsApp user phone number. This is the same value returned by the API as the `input` value when sending a message to a WhatsApp user. Note that a WhatsApp user's phone number and ID may not always match. Omitted if the user has adopted a username and their phone number is unavailable. See [Phone numbers](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids#phone-numbers). | `+16505551234` |
| `<WHATSAPP_USER_PROFILE_NAME>`<br><br>_String_ | WhatsApp user's name as it appears in their profile in the WhatsApp client. | `Sheena Nelson` |
## Example
The following is an example messages webhook payload for an image message.
```json
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "102290129340398",
"changes": [
{
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "15550783881",
"phone_number_id": "106540352242922"
},
"contacts": [
{
"profile": {
"name": "Sheena Nelson"
},
"wa_id": "16505551234",
"user_id": "US.13491208655302741918"
}
],
"messages": [
{
"from": "16505551234",
"from_user_id": "US.13491208655302741918",
"id": "wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQTRBNjU5OUFFRTAzODEwMTQ0RgA=",
"timestamp": "1744344496",
"type": "image",
"image": {
"caption": "Taj Mahal",
"mime_type": "image/jpeg",
"sha256": "SfInY0gGKTsJlUWbwxC1k+FAD0FZHvzwfpvO0zX0GUI=",
"id": "1003383421387256",
"url": "https://lookaside.fbsbx.com/whatsapp_business/attachments/?mid=133..."
}
}
]
},
"field": "messages"
}
]
}
]
}
```