> ## 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 user busy times

> List a Calendly user's internal and external busy times.

`calendly.listUserBusyTimes` accepts a user URI and an RFC 3339 UTC window of at most seven days.

```ts automations/list-calendly-busy-times.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { calendly } from "automate.ax/calendly"

export default automation("List Calendly busy times", () => {
  onDashboardRun({ title: "List Calendly busy times" })
  const busy = calendly.listUserBusyTimes({
    user: "https://api.calendly.com/users/user-id",
    startTime: "2027-01-04T09:00:00Z",
    endTime: "2027-01-11T09:00:00Z",
  })
  sendEmail({ subject: "Busy times", text: JSON.stringify(busy.items) })
})
```

Items identify `calendly`, `external`, or `reserved` blocks and include buffer times or a scheduled event URI when applicable. The action rejects reversed or overlong ranges before calling Calendly.
