Download a completed recording's audio.
curl --request GET \
--url https://omni-api.sendblue.com/recordings/{recording_id}/audio \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/recordings/{recording_id}/audio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/recordings/{recording_id}/audio"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Download a completed recording's audio.
Served only to the account’s credentials; no link works without them.
Answers 503 unavailable where the deployment has no recording storage.
Required permission: recordings:read. Accepted credentials: a signed-in person, an API key, the account token.
GET
/
recordings
/
{recording_id}
/
audio
Download a completed recording's audio.
curl --request GET \
--url https://omni-api.sendblue.com/recordings/{recording_id}/audio \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/recordings/{recording_id}/audio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/recordings/{recording_id}/audio"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)"<string>"{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
personbearerlegacyKeyId & legacyKeySecret
Response
The audio.
The response is of type file.