Developer/IT > Whisbi API > Send an SMS with Whisbi’s API > Using templates

Using templates

You are able to use templates Once you know the template name you want to use and language you are able to send a sms.

You have the option of create a template*, the template will contain a body message, language and the engage url so you just need the template name and send the variables inside the request.

Example – POST:

https://api.whisbi.com/api/sms

body:
{
"account": "000000-0000-1111-0000-109f58471b09",
"from": "+18091375163",
"to": "+34664725444",
"variables": {
"username": "John",
"dayName": "tomorrow"
},
"engage_url": "https://google.es",
"template": "engage session template",

}

Copy Code

Bear in mind, the variables are referencing the body of the template

If you wish to use message template send an email to support@whisbi.com with the template information.