Get the Tempus profile for an employee (user)
Returns the consolidated Tempus profile for a single employee, assembled from the employee's active contract and company: the company, the contract dates, basic employee contact fields, and per-feature summaries (absence, home office allowance, overtime). The caller may only view their own profile: the request is rejected with 403 when the authenticated user has no access to the tenant or the employee record is not their own, with 404 when the employee or its linked user account cannot be found, and with 422 when the employee has no active contract to build a profile from.
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
employee*object
Jane Smithjane.smith@example.comcompany*object
550e8400-e29b-41d4-a716-446655440001Acme Corpcontract*object
2024-01-01550e8400-e29b-41d4-a716-446655440042absence*object
200:00:0080:00:00120:00:00home_office*object
120515overtime*object
1112:30:0045000decision_preferenceobject | null
employee companyemployeepay_up_to increment_up_to nullincrement_up_toskip_if_manual_decision force_auto_decision force_zero_overtime nullskip_if_manual_decision36000add_to_balance drop nulladd_to_balancePer HR overtime policy.current_periodobject
550e8400-e29b-41d4-a716-4466554400002026-01-012026-12-312026-12-242026-12-31current_accrualobject
720002:00:00360001:00:001080003:00:00travel_time*object
1301011preferences*object
d/m/Y m/d/Y Y-m-d d.m.Yd.m.Yvalidator*object | null
permissions*object
pending*object
3100companies*array<object>
departments*array<object>
employees*array<object>
validators*array<object>
550e8400-e29b-41d4-a716-446655440010550e8400-e29b-41d4-a716-446655440011Jane Smithscopes*array<string>
holiday_requests home_office_requests time_point_corrections_requests schedules_managementAuthorization Token is missingmessagearray<string>
Employee has no active contract.https://cockpit.voxbi.com/api/v1/{pbx_id}/user/{employee_id}/profile
curl -X GET 'https://cockpit.voxbi.com/api/v1/{pbx_id}/user/{employee_id}/profile' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/{pbx_id}/user/{employee_id}/profile', {
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}/user/{employee_id}/profile',
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}/user/{employee_id}/profile', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"message": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057