Voxbi Cockpit APIs
All endpoints

Get accumulated work times for the authenticated user (user)

Return the accumulated work-time totals for the authenticated user. When the PBX's Tempus app is sourced from Cockpit the totals are calculated locally; otherwise they are fetched from the external Tempus system. If no data is available, zeroed totals are returned.

All durations are formatted as HH:MM:SS strings. min* values represent the minimum (contractually required) duration for the corresponding period.

HTTP: bearerAuth

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>
accept header · string
example: application/json

Responses

Response schema
workTimesobject
dailystring
example: 08:00:00
minDailystring
example: 08:00:00
weeklystring
example: 40:00:00
minWeeklystring
example: 40:00:00
monthlystring
example: 160:00:00
minMonthlystring
example: 160:00:00
lunchstring
example: 01:00:00
Authorization Token Missing. This error is returned when the authorization token is missing.
Response schema
errorstring
Error message
example: Authorization Token is missing
Data Not Found. This error is returned when the requested data is not found.
Response schema
messagearray<string>
[]string
get https://cockpit.voxbi.com/api/v1/workTimes
Base URL
Request sample
curl -X GET 'https://cockpit.voxbi.com/api/v1/workTimes' \
  -H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/workTimes', {
  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/workTimes',
    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/workTimes', false, $context);
$data = json_decode($response, true);
print_r($data);
{}
"workTimes": {}
"daily": "08:00:00",
"minDaily": "08:00:00",
"weekly": "40:00:00",
"minWeekly": "40:00:00",
"monthly": "160:00:00",
"minMonthly": "160:00:00",
"lunch": "01:00:00"
}
}
{}
"error": "Authorization Token is missing"
}
Cache-Control string
example: private, must-revalidate
Connection string
example: keep-alive
Content-Type string
example: application/json
Vary string
example: Origin
X-RateLimit-Limit integer
Max requests allowed in the current rate-limit window.
example: 60
X-RateLimit-Remaining integer
Requests remaining in the current rate-limit window.
example: 57
{}
"message": []
"Data not found"
]
}
Cache-Control string
example: private, must-revalidate
Connection string
example: keep-alive
Content-Type string
example: application/json
Vary string
example: Origin
X-RateLimit-Limit integer
Max requests allowed in the current rate-limit window.
example: 60
X-RateLimit-Remaining integer
Requests remaining in the current rate-limit window.
example: 57