One API: Send URL preview formatted text

This flag allows you to enable an URL preview of the first URL in your message on the recipient's handset. By default, WhatsApp recognizes an URL and makes it clickable within the application.

The base URL for all API call strings is: https://platform.clickatell.com/v1/message

Please ensure that the URL begins with http:// or https:// in the message content body.

Request headers


POST /v1/message
Content-Type: application/json
Authorization: Your API KEY 

JSON Request


{
 "messages": [
     {       
      "to": "27999000001",
      "content": "Check out http://www.clickatell.com to learn more about our latest products and services",
      "previewFirstUrl": true
     }   
 ] 
}

Response


HTTP 202
{   "messages": [
     {       
"apiMessageId": "5106e0e2a1865b657316379a82ccb447",
       "accepted": true,
       "to": "2799900002",
       "error": null
     }
   ],
   "error": null
 }
This flag allows you to enable an URL preview of the first URL in your message on the recipient's handset. By default, WhatsApp recognizes an URL and makes it clickable within the application. The base URL for all API call strings is: https://platform.clickatell.com/v1/message Please ensure that the URL begins with http:// or https:// in the message content body. Request headers

POST /v1/message
Content-Type: application/json
Authorization: Your API KEY 

JSON Request

{
 "messages": [
     {       
      "to": "27999000001",
      "content": "Check out http://www.clickatell.com to learn more about our latest products and services",
      "previewFirstUrl": true
     }   
 ] 
}
Response

HTTP 202
{   "messages": [
     {       
"apiMessageId": "5106e0e2a1865b657316379a82ccb447",
       "accepted": true,
       "to": "2799900002",
       "error": null
     }
   ],
   "error": null
 }