Read one request by its id (user)
One request, with where it stands in its approval chain.
Exists so a request can be opened directly. Before it, a request could only be read by finding it in a feed, which made deep-linking impossible: a push notification or an email names one request and nothing would return it. The trail came closest but deliberately carries only the approval story - status, ladder, history - and none of the request's own fields, so a client following a link had the progress of something it could not describe.
Same entry shape as the feeds (kind, request, progress), so one request renders
with the code you already have for a row of a list.
Readable by the request's own employee and by anyone its chain asks to decide it.
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>
absences home-office time-point-corrections application/jsonResponses
absences home-office time-point-correctionsabsencesprogress*object | null
Team lead31waiting_on*array<object>
550e8400-e29b-41d4-a716-446655440031Muller Jonasapproved_by*array<object>
550e8400-e29b-41d4-a716-446655440030Lemaire Faridnext_stepobject | null
HR2steps*array<object>
1Team leadpending active completed bypassed rejectedcompletedApproved by Lemaire Farid11validatorsarray<object>
550e8400-e29b-41d4-a716-446655440030Lemaire Faridpending accepted rejectedacceptedsupervisors*array<object>
550e8400-e29b-41d4-a716-446655440032Weber Inespending accepted rejectedpending1Authorization Token is missinghttps://cockpit.voxbi.com/api/v1/v2/{pbx}/requests/{kind}/{id}
curl -X GET 'https://cockpit.voxbi.com/api/v1/v2/{pbx}/requests/{kind}/{id}' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/v2/{pbx}/requests/{kind}/{id}', {
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/v2/{pbx}/requests/{kind}/{id}',
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/v2/{pbx}/requests/{kind}/{id}', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057