Employees the logged-in validator can validate
Returns the employees the logged-in user (a validator) is allowed to validate (the union across all validator modules), each with identity, the active contract, and a per-module capability map. Access is rule-based (see the "Validators & Managers" rules). Matricule is never returned.
Optional filters narrow the list by the employee's active-contract company or
department, or to a single employee. The dropdown values (the companies /
departments / employees in scope) come from the caller's user-profile
validator block.
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
dataarray<object>
550e8400-e29b-41d4-a716-446655440010550e8400-e29b-41d4-a716-446655440011JohnDoejohn.doe@example.com550e8400-e29b-41d4-a716-4466554400201contractobject | null
modulesobject
https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/employees
curl -X GET 'https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/employees' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/employees', {
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/employees',
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/employees', false, $context);
$data = json_decode($response, true);
print_r($data);