> ## 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 activities

> List activity across Close communication and CRM activity types.

`close.listActivities` lists activity across Close communication and CRM activity types.

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

export default automation("List activities", () => {
  onDashboardRun({ title: "List activities" })
  close.listActivities({ leadId: "lead_abc123", type: "Email" })
})
```

## Inputs

Optionally filter by `leadId`, `contactId`, `userId`, and provider activity `type`. `limit` defaults to `100`; `skip` defaults to `0`. Optional second argument `{ account }` selects a named Close binding.

## Output

Returns `{ data: CloseActivity[], hasMore: boolean }`. `type` discriminates calls, emails, SMS, notes, meetings, and the other documented activity families. Common activity types retain their subtype-specific fields.
