v1
latestOpenAPI 3.0.02026-07-17121287546.7 KBSlots
Reserve a slot
Make a slot not available for others to book for a certain period of time. If you authenticate using oAuth credentials, api key or access token then you can also specify custom duration for how long the slot should be reserved for (defaults to 5 minutes).
<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
post/v2/slots/reservations
Headers
cal-api-versionstring required
Must be set to 2024-09-04. If not set to this value, the endpoint will default to an older version.
Authorizationstring
value must be Bearer <token> where <token> is api key prefixed with cal_ or managed user access token
x-cal-client-idstring
For platform customers - OAuth client ID
Request body
Example request
{
"eventTypeId": 1,
"slotStart": "2024-09-04T09:00:00Z",
"reservationDuration": 5
}Response
Example response
{
"status": "success",
"data": {
"eventTypeId": 1,
"slotStart": "2024-09-04T09:00:00Z",
"slotEnd": "2024-09-04T10:00:00Z",
"reservationUid": "e84be5a3-4696-49e3-acc7-b2f3999c3b94",
"reservationDuration": 5,
"reservationUntil": "2023-09-04T10:00:00Z"
}
}