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

# contacts.list

> Every customer, a page at a time.

```ts theme={null}
let cursor: string | null = null;
do {
  const [page, error] = await crm.contacts.list({ limit: 100, cursor });
  if (error) break;
  for (const contact of page.items) {
    // ...
  }
  cursor = page.nextCursor;
} while (cursor);
```

**limit** `number`

How many per page, 1 to 100. 25 when omitted.

**cursor** `string`

The `nextCursor` of the page before. Leave it out for the first page.

**sort** `string`

One of `createdAt`, `displayName`, `lifecycleChangedAt`.

**order** `string`

`asc` or `desc`.

**q** `string`

Matches a name, an email or phone, or an external id.

Archived customers are left out.

## Returns

**items** `Contact[]`

Each as [`contacts.get`](https://docs.revenuebee.ai/sdk/get-contact) returns it.

**nextCursor** `string | null`

Send it back as `cursor` for the next page. `null` on the last one.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.