Available slots (cal-api-version: 2024-09-04): the bookable start times for an event type.
Context Vars
cal-com.api.key
Functions
build-slots-query
fn (event-type-id: Any, start: Str, end: Str, time-zone: Str?, options: Map): Str
Build the GET /slots query: eventTypeId, start, end, timeZone,
plus any options (duration, format: "range",
bookingUidToReschedule, or
eventTypeSlug/username/teamSlug/usernames lookups). Nulls are
dropped. Exposed for testing.
Example
::cal-com::slots/build-slots-query(123, "2026-07-10", "2026-07-14", null, {format: "range"})
// "?format=range&eventTypeId=123&start=2026-07-10&end=2026-07-14"
get-slots
fn (event-type-id: Any, start: Str, end: Str, time-zone: Str): Any
fn (event-type-id: Any, start: Str, end: Str, time-zone: Str?, options: Map): Any
fn (event-type-id: Any, start: Str, end: Str, time-zone: Str?, options: Map, opts: Map): Any
GET /slots - Available start times for an event type between
start and end (UTC ISO 8601: a YYYY-MM-DD date means the whole
day), returned in time-zone (UTC when null). Returns a Map of
date → [{start}] (or [{start, end}] with format: "range").
options: duration (multi-duration event types), format,
bookingUidToReschedule (keep the original slot visible while
rescheduling).
Example
open ::cal-com::slots/get-slots(123, "2026-07-10", "2026-07-14", "America/Chicago")