> ## 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 scheduled events

> List Calendly meetings for a user, organization, or group.

`calendly.listScheduledEvents` requires at least one of `user`, `organization`, or `group` and returns paginated meetings.

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

export default automation("List upcoming Calendly events", () => {
  onDashboardRun({ title: "List Calendly events" })
  const page = calendly.listScheduledEvents({
    user: "https://api.calendly.com/users/user-id",
    minStartTime: "2027-01-01T00:00:00Z",
    status: "active",
    sort: "start_time:asc",
  })
  sendEmail({ subject: "Upcoming events", text: JSON.stringify(page.items) })
})
```

Optional filters include `inviteeEmail`, `minStartTime`, `maxStartTime`, and `status`. Results include location and join URL, memberships, guests, invitee counts, and cancellation details. Continue with `pageToken` from `pageInfo.nextPageToken`.
