Download a call recording (user, pbx)
Streams the audio recording for a call. By default the recording for the
given call id is returned. To fetch a specific recording variant (caller
leg, callee leg, or the combined file), pass its path (obtained from the
recording_file* references on the call-detail or, in the list, when
extras=true).
Authentication accepts either a user personal access token or a PBX-owned
API key. A PBX API key must carry the call-history ability/scope.
Rate-limited to 120 requests per minute per principal.
User bearer token. Default authentication for customer-facing endpoints.
Obtain a token by calling POST /login with your credentials, then send it
on every subsequent request as Authorization: Bearer <token>. The token
inherits the permissions and PBX scope of the authenticated user.
- HTTP Authorization Scheme
bearer- Bearer format
Bearer <token>
Responses
Authorization Token is missinghttps://cockpit.voxbi.com/api/v1/call-recording
curl -X GET 'https://cockpit.voxbi.com/api/v1/call-recording' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/call-recording', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://cockpit.voxbi.com/api/v1/call-recording',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
],
]);
$response = file_get_contents('https://cockpit.voxbi.com/api/v1/call-recording', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057