Retrieve Recording Metadata

Retrieve information about a specific recording.

Request URL

GEThttps://voice.bandwidth.com/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}

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: Retrieve information about a specific recording

curl -X GET \
    --url "https://voice.bandwidth.com/api/v2/accounts/{accountId}/calls/{callId}/recordings/{recordingId}" \
    -u '{username}:{password}'
{
  "accountId"           : "5552319",
  "callId"              : "c-2a913f94-6a486f3a-3cae-4034-bcc3-f0c9fa77ca2f",
  "recordingId"         : "r-d68201ef-d53e-4c6d-a743-1c1283909d41",
  "to"                  : "+15552311778",
  "from"                : "+15552311772",
  "duration"            : "PT11.64S",
  "direction"           : "inbound",
  "channels"            : 1,
  "startTime"           : "2019-10-21T16:45:11.293Z",
  "endTime"             : "2019-10-21T16:55:12.950Z",
  "fileFormat"          : "wav",
  "transcriptionStatus" : "none",
  "mediaUrl"            : "https://../{accountId}/calls/{callId}/recordings/{recordingId}/media",
  "transcriptionUrl"    : null
}
 try {
    ApiResponse<RecordingMetadataResponse> response = voiceClient.getMetadataForRecording(VOICE_ACCOUNT_ID, "callId", "recordingId");
    System.out.println(response.getResult().getMediaUrl());
} catch (ApiException | IOException e) {
    e.printStackTrace();
}
var response = controller.GetMetadataForRecording(accountId, callId, recordingId);
Console.WriteLine(response.Data.Duration);
response = voice_client.get_metadata_for_recording(VOICE_ACCOUNT_ID, call_id, recording_id)
puts response.data.media_url
response = voice_client.get_metadata_for_recording(VOICE_ACCOUNT_ID, call_id, recording_id)
print(response.body.media_url)
var response = await voiceController.getMetadataForRecording(accountId, callId, recordingId);
console.log(response.mediaUrl);
try {
    $response = $voiceClient->getMetadataForRecording($accountId, $callId, $recordingId);
    print_r($response->getResult()->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.

results matching ""

    No results matching ""