Download a recording
curl --request GET \
--url https://backend.drivehealth.ai/api/calls/recording/{call_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://backend.drivehealth.ai/api/calls/recording/{call_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://backend.drivehealth.ai/api/calls/recording/{call_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Results
Download a recording
Download the recording of a call your organization owns. The call_recording_url on a call record already points here, on the current API host. The response is the audio itself: audio/ogg for recordings Drive Health stored and audio/wav for recordings fetched from the telephony provider, so read the Content-Type header. Fetch it from your backend; never place the organization key in a browser audio element or link.
GET
/
api
/
calls
/
recording
/
{call_id}
Download a recording
curl --request GET \
--url https://backend.drivehealth.ai/api/calls/recording/{call_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://backend.drivehealth.ai/api/calls/recording/{call_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://backend.drivehealth.ai/api/calls/recording/{call_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Authorizations
organizationBearerorganizationApiKey
An organization API key starting with dh_, sent as Authorization: Bearer dh_your_api_key.
Path Parameters
ID of the call whose recording to download.
Response
The recording audio.
The response is of type file.
