Get the validator scope (employees the authenticated user can validate)
DeprecatedDeprecated: the caller's validator scope is now returned inline on their user
profile under the validator block (GET /{pbx_id}/user/{employee_id}/profile),
which carries the same per-module scope plus the consultable companies,
departments and employees. Prefer that; this endpoint is kept for
backward compatibility.
Returns the tempus validator scope identified by the path parameter. Multi-tenant scoping is enforced: the caller can only fetch resources within their own PBX.
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
Authorization Token is missingThe given data was invalid.errorsobject
filterarray<string>
sortarray<string>
pagearray<string>
per_pagearray<string>
https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/scope
curl -X GET 'https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/scope' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/{pbx_id}/validator/scope', {
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/scope',
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/scope', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
"holiday_requests": { … },
"targets": [ … ]
{ … }
"time_point_corrections_requests": { … },
"targets": [ … ]
{ … }
"home_office_requests": { … }
cockpit.voxbi.comMon, 16 Oct 2023 14:08:48 GMTcloseno-cache, privateapplication/json6059Origin{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"errors": { … }
"filter": [ … ],
"sort": [ … ],
"page": [ … ],
"per_page": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057