List the time point corrections waiting on you to decide (user)
The time point correction requests this employee is asked to decide: changes to a recorded clock event, raised by the employee whose sheet it is.
Read off the approval rows addressed to them, so approval chains are honoured
exactly as the decision endpoints honour them. A correction at a step below theirs is
included with can_decide_now: false.
Your own employee record only: another employee's id returns 403.
The payload is the v2 correction shape: people are identified by employee_id
rather than v1's requested_ext_id (a telephony extension is not how a Tempus
employee is identified), and the timestamps are ISO 8601 rather than several
pre-formatted renderings of the same instant.
Open one with
GET /tempus/api/v1/{pbx_id}/validator/pending-corrections/{correction_id}/details,
which returns the day's other time points for context and is unchanged.
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>
pagination*object
143810Authorization 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}/pending-requests/time-point-corrections
curl -X GET 'https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/pending-requests/time-point-corrections' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/v2/{pbx}/employee/{employee}/pending-requests/time-point-corrections', {
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}/pending-requests/time-point-corrections',
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}/pending-requests/time-point-corrections', 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