Skip to content

Push a slot's assignments to the assignees' Microsoft 365 calendars (user or API key)

Adds the slot's upcoming assignments to the assignees' Microsoft 365 calendars. Calendar only: no email is sent (publishing is POST /{pbx_id}/schedule-management/{schedule}/send). Idempotent: occurrences already in a calendar are reported, not sent again. Every body field is optional: a bare POST pushes every assignment of the slot from today onwards. Answers 422 when the Microsoft 365 calendar integration is not active for the PBX. Granting the tempus-schedules scope to an API key allows this call, which writes to employees' mailboxes.

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>
HTTP: IntegrationApiKey

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
pbx_id path · string · uuid *
UUID of the PBX tenant.
slot path · string · uuid *
UUID of the slot.
accept header · string
example: application/json

Request body · application/json

Request schema
employee_idstring | null · uuid
Only push the assignments of this employee, who must belong to the caller's PBX. Omitted: every employee assigned to the slot.
example: 550e8400-e29b-41d4-a716-446655440010
fromstring | null · date-time
Push the occurrence starting at or after this moment, and all later ones. Omitted: from the start of today.
example: 2026-03-02T00:00:00

Responses

The push was processed. `data.status` tells what happened; nothing being sent (already pushed, nothing scheduled, nobody linked to a Microsoft account) is still a 200.
Response schema
messagestring
dataobject
statusstring
enum: pushed already_pushed nothing_to_push no_mailbox
pushedinteger
already_pushedinteger
no_mailboxinteger
totalinteger
Authorization Token Missing. This error is returned when the authorization token is missing.
Response schema
errorstring
Error message
example: Authorization Token is missing
The caller is refused. A PBX API key is rejected with 403 when it does not carry the `tempus-schedules` scope or when `pbx_id` is not the key's own PBX. A user token is refused when it has no schedules-management permission (or no employee record), or when `employee_id` is outside the caller's scope.
Response schema
messagestring
Data Not Found. This error is returned when the requested data is not found.
Response schema
messagearray<string>
[]string
Validation failed, or the Microsoft 365 calendar integration is not active for this PBX (the body then carries the `message` and a `data` object with the status).
Response schema
messagestring
errorsobject
Free-form object
dataobject
Present when the integration refuses the push.
Free-form object
Too Many Requests. The rate limit for this action has been exceeded. Retry after the window indicated by the Retry-After header.
Response schema
messagestring
post https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/slots/{slot}/push-to-calendar
Base URL
Request sample
curl -X POST 'https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/slots/{slot}/push-to-calendar' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data '{"employee_id":"550e8400-e29b-41d4-a716-446655440010","from":"2026-03-02"}'
const response = await fetch('https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/slots/{slot}/push-to-calendar', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': `Bearer ${YOUR_TOKEN}`,
  },
  body: JSON.stringify({
    "employee_id": "550e8400-e29b-41d4-a716-446655440010",
    "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/slots/{slot}/push-to-calendar',
    headers={'Authorization': f'Bearer {YOUR_TOKEN}'},
    json={
    "employee_id": "550e8400-e29b-41d4-a716-446655440010",
    "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' => '{
    \"employee_id\": \"550e8400-e29b-41d4-a716-446655440010\",
    \"from\": \"2026-03-02\"
}',
    ],
]);

$response = file_get_contents('https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/slots/{slot}/push-to-calendar', false, $context);
$data = json_decode($response, true);
print_r($data);
Sample request
{ … }
"employee_id": "550e8400-e29b-41d4-a716-446655440010",
"from": "2026-03-02"
}
{ … }
"message": "Adding 5 occurrence(s) to the calendar. No email was sent — publish the schedule to email assignees.",
"data": { … }
"status": "pushed",
"pushed": 5,
"already_pushed": 0,
"no_mailbox": 0,
"total": 5
}
}
{ … }
"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": "You do not have access to this PBX."
}
{ … }
"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
{ … }
"message": "The selected employee id is invalid.",
"errors": { … }
"employee_id": [ … ]
"The selected employee id is invalid."
]
}
}
{ … }
"message": "Too Many Attempts."
}
Retry-After integer
Seconds to wait before retrying.
example: 60
Content-Type string
example: application/json