Bulk SMS
This API enables you to send as many SMSs as you would like (Bulk SMS).
Request Body
Name
Type
Description
const axios = require('axios');
const data = {
username: "username",
body: {
messages: [
{ phone: "0722000000", message: "This is a test message 1," },
{ phone: "0722000000", message: "This is a test message 2," },
{ phone: "0722000000", message: "This is a test message 3," }
]
}
};
const config = {
headers: {
'Content-Type': 'application/json',
'Authorization': 'secret_key'
}
};
axios.post('https://api.rotsi.co.ke/sms/bulksms/v1', data, config)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});Last updated