const options = {
method: 'POST',
headers: {
'X-API-KEY': 'your-api-key-here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"name": "John Doe",
"mobile_number": "+1234567890",
"agent_id": "your-agent-id",
"from_number_id": "your-from-number-id",
"custom_args_values": {
"custom_variable_1": "value1",
"custom_variable_2": "value2"
}
})
};
fetch('https://prod-api.ringg.ai/ca/api/v0/calling/outbound/individual', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));