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

Using dynamic variables

If you want to use dynamic variables you need to put every single variable inside curly braces {{}} also you will need to set the parameter variables referencing all variables you have added inside the body text or your engage url (check section: using the engage url)

Example – POST:

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

body:
{
"account": "000000-0000-1111-0000-109f58471b09",
"from": "+18091375163",
"to": "+34664725444",
"body": "Hi {{username}}, {{dayName}} you will be able to join a session from here {{ engageURL }}",
"variables": {
"username": "John",
"dayName": "tomorrow"
},
"engage_url": "https://my-car-drive-landing.com",
Copy Code