Unoccupied time windows in the calendar
get_free_slotsFind unoccupied time windows in the authenticated user calendar. from and to are optional ISO 8601 date or date-time (default ±31 days). The window cannot exceed 366 days. duration is the minimum slot length in minutes (default 30, range 5–1440). Optional dayStart and dayEnd limit the search to a workday in HH:MM (24-hour, user timezone). Slot bounds use the user timezone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO 8601 date or date-time. A date without time is the end of that day in the user timezone, inclusive. Default is 31 days after now. The window cannot exceed 366 days | |
| from | No | ISO 8601 date or date-time. A date without time is the start of that day in the user timezone. Default is 31 days before now. The window cannot exceed 366 days | |
| dayEnd | No | Workday end in HH:MM (24-hour, user timezone) | |
| dayStart | No | Workday start in HH:MM (24-hour, user timezone) | |
| duration | No | Minimum slot length in minutes (default 30, range 5–1440) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slots | Yes | Unoccupied windows at least as long as duration |