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

> List one-to-one, group, and meeting chats for a Microsoft 365 user.

`listChats` follows Graph pagination and lists chats in which the connected user
participates.

## Example

```ts automations/list-teams-chats.automation.ts theme={null}
import { automation } from "automate.ax"
import { listChats } from "automate.ax/teams"

export default automation("List Teams chats", () => {
  listChats({ limit: 250 })
})
```

## Inputs

Optional `limit` defaults to 100 and accepts 1–10,000 results across Graph
pages. Optional `account` selects the Microsoft binding.

## Output

Returns chats with `chatId` and `chatType` (`oneOnOne`, `group`, `meeting`, or
`unknownFutureValue`), plus optional `topic`, `tenantId`, `createdAt`,
`updatedAt`, and `webUrl`.
