WhatsApp Template Messages

Send business initiated messages using message templates beyond the 24 hour window to your customers. A message template can be text-based, media-based, or interactive. Note: Modify YourRegion in the URL to the right to reflect your tenant’s region. See know your endpoint page.

🚧

Template API usage

The template should be registered and approved from Tools -> Templates section within imiconnect platform, before it can be used to send notification messages. You can also use interactive message templates like Call-To-Action buttons or Quick Replies buttons.

{
    "appid": "a_157967534853754560",
    "deliverychannel": "whatsapp",
    "message": {
        "template": "513972242591830",
        "parameters": {
            "movie": "joker",
            "venue": "hyderabad",
            "seat1": "balcony",
            "seat2": "first class",
            "image": {
                "link": "http://mattfarmer.net/projects/thickbox/images/plant4.jpg",
                "filename": "image.jpg"
            },
            "time": {
                "type": "date_time",
                "fallback_value": "Feb 20th, 2020 8:45pm",
                "timestamp": "1582231500"
            },
            "purchase_value": {
                "type": "currency",
                "currency_code": "USD",
                "amount_1000": "150000",
                "fallback_value": "EUR 300"
                }
            }
        },
    "destination": [
        {
            "waid": [
                "9177xxxxxxxx"
            ]
        }
    ]
}
{
   "appid":"a_160730369477132030",
   "deliverychannel":"whatsapp",
   "message":{
      "template":"1024406451379326",
      "parameters":{
         "variable1":{
            "type":"url",
            "payload":"<<url_extension>>"
         }
      }
   },
   "destination":[
      {
         "waid":[
            "9199xxxxxxxx"
         ]
      }
   ]
}
{
   "appid":"a_161007122569873440",
   "deliverychannel":"whatsapp",
   "message":{
      "template":"244219340449037",
      "parameters":{
         "quickReply":[
            {
               "button_text":"Button 1",
               "payload":"<<button 1 payload>>"
            },
            {
               "button_text":"Button 2",
               "payload":"<<button 2 payload>>"
            },
            {
               "button_text":"Button 3",
               "payload":"<<button 3 payload>>"
            }
         ]
      }
   },
   "destination":[
      {
         "waid":[
            "9199xxxxxxxx"
         ]
      }
   ]
}
}
},
"destination": [
{
"waid": [
"9199xxxxxxxx"]
}]
}

Error Codes

Refer to the below page https://developers.imiconnect.io/reference/channel-specific-status-codes-1#whatsapp

Language
URL
Click Try It! to start a request and see the response here!