Send Template Messages
While sending a template message, the whole template iscontents are not sent. OnlyTo thesend a template imagesmessage, its media link [public link] & variable values [if any] are sent along with the template name and lanugagelanguage
curl --location 'https://api.versal.one/<client-id>' \
--header 'Authorization: Bearer <client-token>' \
--header 'Content-Type: application/json' \
--data '{
"purpose": "sendtemplate",
"to": <recepient>,
"template": "schedule",
"code": "en",
"components": [
{
"type": "header",
"parameters": [
{
"type": "image",
"image": {
"link": "https://cdn.anuhealthyfood.in/images/missyourorders.png"
}
}
]
}
]
}'
The link has to be publically accessible, or else the template won't be delivered to the user