var settings = {
"async": true,
"crossDomain": true,
"url": "https://api.vaspro.co.ke/v3/BulkSMS/bulk/create",
"method": "POST",
"headers": {
"cache-control": "no-cache",
},
"data": "{
"apiKey": "api token here",
"shortCode": "VasPro",
"origin": "API_INTERFACE",
"isScheduled": ,
"scheduleDate":
"scheduleTime": ,
"uniqueId": "12347",
"enqueue": 1,
"message": ""
"contacts":
{"recipients": "07xxxxxxxx,07xxxxxxx"},
"callbackURL": "http://vaspro.co.ke/dlr"
}"
}
$.ajax(settings).done(function (response) {
console.log(response);
});