WhatsApp channel properties
There are WhatsApp channel-specific properties that can be used when making calls to the Conversation API. These properties can be listed under channel_properties
in the message request.
For example, below is the code for adding the channel specific property WHATSAPP_PREVIEW_URL
to a Conversation API call:
{
"app_id": "{APP_ID}",
"recipient":
{
"contact_id": "{CONTACT_ID}"
},
"message":
{
"text_message":
{
"text": "This is a text message from the Sinch Conversation API. https://www.sinch.com"
}
},
"channel_properties": {
"WHATSAPP_PREVIEW_URL": "false"
}
}
The relevant WhatsApp channel properties are detailed in the table below:
Property name | Property value |
---|---|
WHATSAPP_PREVIEW_URL |
Defines whether to include a preview of the URL or not. Possible values: true , false . Default value: true . |