05 April 2019

One API: Send URL preview formatted text

05 April 2019
clock
2 minutes

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
 }

Featured Insight Circle post

Reclaiming Billions in the Digital Economy: James Ronca

Related blogs posts

Reclaiming Billions in the Digital Economy: James Ronca
The 2020s: Decade of Dynamic Payments
Life will never be the same

About Clickatell

Todays’ consumers spend more time on chat like text, Instagram, Facebook Messenger, and WhatsApp than apps, and they expect a high degree of convenience in the way brands serve them. Clickatell makes it possible for brands and consumers to engage and transact via mobile chat and digital channels with industry-leading communications commerce platforms and solutions. With offices in San Francisco, Toronto, Cape Town, and Lagos, Clickatell serves more than 15,000 global brands, ranging from Fortune 500 organizations to well-known consumer brands and small businesses in over 220 countries worldwide.

Read more about Clickatell

Related blogs posts

Reclaiming Billions in the Digital Economy: James Ronca
The 2020s: Decade of Dynamic Payments
Life will never be the same

This website uses cookies to allow us to see how the site is used. The cookies cannot identify you. If you continue to use this site we will assume that you are happy with this. If you want to use the site without cookies or would like to know more, you can do that here.