Start an outbound call
curl --request POST \
--url https://backend.drivehealth.ai/api/calls/make-outbound \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_number": "+15551110000",
"to_number": "+15552220000"
}
'import requests
url = "https://backend.drivehealth.ai/api/calls/make-outbound"
payload = {
"from_number": "+15551110000",
"to_number": "+15552220000"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from_number: '+15551110000', to_number: '+15552220000'})
};
fetch('https://backend.drivehealth.ai/api/calls/make-outbound', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"err": false,
"msg": "Call initiated successfully",
"results": {
"call_id": "3c2b1a09-8f7e-4d6c-9b8a-7d6c5b4a3f2e"
}
}
Voice
Start an outbound call
Start a phone call from a number your organization owns. The caregiver attached to that number runs the call. Use the returned call_id to read the result rather than guessing which row in the call list is yours. The call runs only when workspace balance, caregiver readiness, and the concurrency limit allow it; a refused call creates no record.
POST
/
api
/
calls
/
make-outbound
Start an outbound call
curl --request POST \
--url https://backend.drivehealth.ai/api/calls/make-outbound \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_number": "+15551110000",
"to_number": "+15552220000"
}
'import requests
url = "https://backend.drivehealth.ai/api/calls/make-outbound"
payload = {
"from_number": "+15551110000",
"to_number": "+15552220000"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({from_number: '+15551110000', to_number: '+15552220000'})
};
fetch('https://backend.drivehealth.ai/api/calls/make-outbound', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"err": false,
"msg": "Call initiated successfully",
"results": {
"call_id": "3c2b1a09-8f7e-4d6c-9b8a-7d6c5b4a3f2e"
}
}
Authorizations
organizationBearerorganizationApiKey
An organization API key starting with dh_, sent as Authorization: Bearer dh_your_api_key.
Body
application/json
