Preview where your next request would go (user)
Who would be asked to approve this employee's next request, per request type, before anything is raised. Lets a request form say "this will go to your team lead, then HR".
Read from the current chain configuration rather than from any request, which is what makes it answerable in advance. It is a preview, not a promise: a request freezes its own chain snapshot when raised, so a chain edited in between routes it differently.
covered: false is the field to act on - nobody would be asked at all, either because
no chain covers this employee or because the one that does staffs nobody who may decide
that type for them. Such a request can still be raised and then sits pending with nobody
able to move it.
Your own employee record only: another employee's id returns 403.
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>
application/jsonResponses
data*array<object>
absences home-office time-point-correctionsabsencesabsence_requests home_office_requests time_point_correctionsabsence_requests1employee department company all nulldepartmentchainobject | null
550e8400-e29b-41d4-a716-446655440060Sales departmentsteps*array<object>
1validatorsarray<string>
all partial nullpartial1supervisors*array<object>
Weber Ines1Authorization Token is missingYou do not have access to this PBX.User not found.The given data was invalid.errorsobject
filterarray<string>
sortarray<string>
pagearray<string>
per_pagearray<string>
https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/approval-routing
curl -X GET 'https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/approval-routing' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/approval-routing', {
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}/employee/{employee}/approval-routing',
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}/employee/{employee}/approval-routing', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"errors": { … }
"filter": [ … ],
"sort": [ … ],
"page": [ … ],
"per_page": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057