> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# List blocked slots

> Lists blocked calendar slots in a date range.

`highlevel.listBlockedSlots` lists blocked calendar slots in a date range.

```ts automations/highlevel-list-blocked-slots.automation.ts theme={null}
import { automation, markSignificant } from "automate.ax"
import { highlevel } from "automate.ax/highlevel"

export default automation("List blocked slots", () => {
  markSignificant(
    highlevel.listBlockedSlots({
      calendarId: "BqTwX8QFwXzpegMve9EQ",
      startTime: "1680373800000",
      endTime: "1680978599999",
    }),
  )
})
```

## Input

| Field        | Type     | Required | Description                  |
| ------------ | -------- | -------- | ---------------------------- |
| `userId`     | `string` | No       | HighLevel user id value.     |
| `calendarId` | `string` | No       | HighLevel calendar id value. |
| `groupId`    | `string` | No       | HighLevel group id value.    |
| `startTime`  | `string` | Yes      | HighLevel start time value.  |
| `endTime`    | `string` | Yes      | HighLevel end time value.    |

Automate.ax supplies the connected sub-account's location ID. Optional second argument `{ account }` selects a named HighLevel binding.

Provide at least one selector: `calendarId`, `groupId`, or `userId`.

## Output

| Field    | Type       | Required | Description             |
| -------- | ---------- | -------- | ----------------------- |
| `events` | `object[]` | No       | HighLevel events value. |

This action calls `GET /calendars/blocked-slots` with HighLevel API version `2021-04-15` and requires `calendars/events.readonly`. HighLevel validation and permission errors fail the action. Rate limits honor the provider's retry timing.
