Publish a schedule to its employees by email (user or API key)
Publishes a schedule: every employee with upcoming shifts on it is emailed their roster as a PDF, and the shifts are also pushed to their Microsoft 365 calendars when that integration is active. This is the only call that emails employees about shifts; assigning entries is silent. The emails are queued, so a 200 means they were handed to the queue, not delivered. from is normally the Monday of the week being sent: the emails then cover that week through Sunday. Omit it to send from today onwards with no end date. Granting the tempus-schedules scope to an API key allows this call.
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>
API key created on the Cockpit Integrations page (an "API key" integration).
It is a bearer token owned by the customer's PBX and limited to the scopes
selected when the key was created (e.g. phone-numbers, push-configuration).
Send it in the Authorization header:
Authorization: Bearer <api_key>
Manage keys (create / reveal / revoke) from Integrations → New integration → API key.
- HTTP Authorization Scheme
bearer
application/jsonRequest body · application/json
2026-03-02Responses
dataobject
calendarobject
pushed already_pushed nothing_to_push no_mailbox not_configured disabledAuthorization Token is missingmessagearray<string>
errorsobject
https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/{schedule}/send
curl -X POST 'https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/{schedule}/send' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
--data '{"from":"2026-03-02"}'
const response = await fetch('https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/{schedule}/send', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
body: JSON.stringify({
"from": "2026-03-02"
}),
});
const data = await response.json();
console.log(data);
import requests
response = requests.post('https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/{schedule}/send',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'},
json={
"from": "2026-03-02"
}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
'content' => '{
\"from\": \"2026-03-02\"
}',
],
]);
$response = file_get_contents('https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/{schedule}/send', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
{ … }
"data": { … }
"calendar": { … }
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
{ … }
"message": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057