Validator-scoped employee profile
Full profile of one employee as a validator sees it: identity, active
contract, active workshift, work hours (worked vs required, overtime on
business vs off days), legal-holiday balance, and leave / home-office /
correction history for the range. Returns 403 unless the target employee
is within the caller's validator scope. Matricule is never returned.
Transaction/correction status values are the raw ledger values.
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
employeeobject
contractobject | null
workshiftobject | null
working_hoursobject
assignmentobject
rangeobject
work_hoursobject
holiday_balanceobject
leavearray<object>
pending approved rejected cancelled pending_removal removed nullhome_officearray<object>
pending approved rejected cancelled pending_removal removed nullcorrectionsarray<object>
modulesobject
https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/{employee_id}
curl -X GET 'https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/{employee_id}' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/{employee_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/{pbx_id}/validator/{employee_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/{pbx_id}/validator/{employee_id}', false, $context);
$data = json_decode($response, true);
print_r($data);