Developer/IT > Whisbi API > Send an SMS with Whisbi’s API > Using the engage URL

Using the engage URL

The engage url is a very usefull tool, it allows you to define a url where you want to guide your customer (ex. marketing page, landing page, etc) also you can add dynamic variables by using the curly braces {{}}. For example:

https://my-landing-page.com/?referral={{referral}}

As you can see in the previous example we are using a variable called referral this variable will be interpolated using the parameters defined inside the variables section:

"variables": {
"referral": "my-custom-referral"
}
Copy Code

Bear in mind we are using a url shortener service to make the engage url short. The customer will see something like: https://bit.ly/1izcRVM

To use use the engage url inside your body text please use the variable name engageUrl 

POST


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

body:
{
"account": "000000-0000-1111-0000-109f58471b09",
"from": "+18091375163",
"to": "+34664725444",
"body": "My plan text body, click here {{ engageUrl }}",
"engage_url": "https://my-landing-page.com/?referral={{referral}}"
"variables": {
"referral": "my-custom-referral"
}

}

Copy Code