Retrieve Call Recordings
Retrieve information about all recordings that occurred during a call.
Request URL
GET
https://voice.bandwidth.com/api/v2/accounts/{accountId}/calls/{callId}/recordings
Basic Authentication
Bandwidth's Voice API leverages Basic Authentication with your Dashboard API Credentials. Read more about how Bandwidth secures endpoints in the Security & Credentials document.
Supported Parameters
Parameter | Description |
---|---|
None | None |
Example 1 of 1: Retrieve recordings from a call
curl -X GET \
--url "https://voice.bandwidth.com/api/v2/accounts/{accountId}/calls/{callId}/recordings" \
-u '{username}:{password}'
[
{
"accountId" : "55555555",
"callId" : "c-2a913f94-6a486f3a-3cae-4034-bcc3-f0c9fa77ca2f",
"parentCallId" : null,
"recordingId" : "r-d68201ef-d53e-4c6d-a743-1c1283909d41",
"to" : "+15552311778",
"from" : "+15552311772",
"transferCallerId" : null,
"transferTo" : null,
"duration" : "PT11.64S",
"direction" : "inbound",
"channels" : 1,
"startTime" : "2019-10-21T16:45:11.293Z",
"endTime" : "2019-10-21T16:55:12.950Z",
"fileFormat" : "wav",
"status" : "complete",
"mediaUrl" : "https://../{accountId}/calls/{callId}/recordings/{recordingId-1}/media",
"transcription" : null
},
{
"accountId" : "55555555",
"callId" : "c-2a913f94-6a486f3a-3cae-4034-bcc3-f0c9fa77ca2f",
"parentCallId" : "c-2a913f94-72898b21-78da-881a-abd1-9108abf189a0",
"recordingId" : "r-115da407-e3d9-4ea7-889f-5f4ad7386a80",
"to" : "+15552311778",
"from" : "+15552311772",
"transferCallerId" : "+15552311779",
"transferTo" : "+15552311780",
"duration" : "PT5.000S",
"direction" : "inbound",
"channels" : 2,
"startTime" : "2019-10-21T16:55:13.038Z",
"endTime" : "2019-10-21T16:55:18.038Z",
"fileFormat" : "mp3",
"status" : "complete",
"mediaUrl" : "https://../{accountId}/calls/{callId}/recordings/{recordingId-2}/media",
"transcription" : {
"id" : "t-1a68a908-544f-48ae-b30d-d1747dca3723",
"url" : "https://../{accountId}/calls/{callId}/recordings/{recordingId-2}/transcription",
"status" : "available",
"completedTime" : "2019-10-21T16:55:56.512Z"
}
}
]
try {
ApiResponse<List<RecordingMetadataResponse>> response = voiceClient.getQueryMetadataForAccountAndCall(VOICE_ACCOUNT_ID, "callId");
System.out.println( response.getResult().get(0).getRecordingId() );
} catch (ApiException | IOException e) {
e.printStackTrace();
}
var response = controller.GetQueryMetadataForAccountAndCall(accountId, callId);
Console.WriteLine(response.Data.Count);
response = voice_client.get_query_metadata_for_account_and_call(VOICE_ACCOUNT_ID, call_id)
puts response.data[0].media_url
response = voice_client.get_query_metadata_for_account_and_call(VOICE_ACCOUNT_ID, call_id)
print(response.body[0].media_url)
var response = await voiceController.getQueryMetadataForAccountAndCall(accountId, callId);
console.log(response[0].mediaUrl);
try {
$response = $voiceClient->getQueryMetadataForAccountAndCall($accountId, $callId)
print_r($response->getResult()[0]->mediaUrl);
} catch (BandwidthLib\APIException $e) {
print_r($e);
}
The resource returned in the "mediaUrl" field can be used to retrieve the recording, see /calls/{callId}/recordings/{recordingId}/media
.