const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
whatsapp_phone_number_id: '<string>',
whatsapp_user_id: '<string>',
whatsapp_call_permission_request_template_name: '<string>',
whatsapp_call_permission_request_template_language_code: '<string>',
agent_id: '<string>'
})
};
fetch('https://api.threetone.in/v1/convai/whatsapp/outbound-call', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));