const url = 'https://api.channelautomation.com/api/twilio/available-numbers';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-workspace-id': 'string',
Authorization: 'Bearer <token>'
},
body: JSON.stringify({workspaceId: 'string', areaCode: 'string', limit: 20})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));