ghl_calendar_list_free_slots
Retrieve available calendar time slots for a specified date range, optionally filtered by user and timezone, to find bookable openings.
Instructions
startDate/endDate are epoch milliseconds (a number, e.g. 1548898600000), NOT an ISO date string, despite the parameter name. Date range cannot exceed 31 days. Get Free Slots Get free slots for a calendar between a date range. Optionally a consumer can also request free slots in a particular timezone and also for a particular user. Endpoint: GET /calendars/{calendarId}/free-slots (Version header: v3; source: v3/calendars-v3.json) OAuth scopes: calendars.readonly
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | The user for whom the free slots are returned | |
| endDate | Yes | End Date (**⚠️ Important:** Date range cannot be more than 31 days) | |
| userIds | No | The users for whom the free slots are returned | |
| duration | No | Duration in minutes to use for slot calculation. Must match one of the active durationOptions on the calendar. If omitted, the default duration is used. | |
| timezone | No | The timezone in which the free slots are returned | |
| startDate | Yes | Start Date (**⚠️ Important:** Date range cannot be more than 31 days) | |
| calendarId | Yes | Calendar Id |