const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
body: JSON.stringify('<string>'),
destinationphonenumber: '<string>',
deviceid: 123,
phonenumber: '<string>'
})
};
fetch('https://dashboard.hologram.io/api/1/sms/outgoing/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));