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

# list_contacts — Paginated contacts for an organization

> Reference for the list_contacts MCP tool. List the customers an organization invoices, filtered by name search and status, with cursor-based pagination.

The `list_contacts` tool returns a paginated list of contacts for a single organization. Contacts are the customers an organization invoices. Every request must include `intent` and `organizationId`, and the token must carry the `contacts.read` scope.

> [!NOTE]
>
> Receivables tools require the organization to have invoicing set up in Relay. If it does not, the tool returns an error instead of data.

## Scope

Required OAuth scope: `contacts.read`

## Input

**organizationId** `string` *required*

The organization to query. Must be one of the organizations the token can access.

**search** `string`

Free-text search across contact fields. Must be 1 to 200 characters.

**status** `string`

Filter by contact status. Allowed values: `active`, `archived`. Defaults to `active`.

**cursor** `string`

Opaque pagination cursor from a previous response. Keep the same `pageSize` and filters when following cursors. Never parse, edit, or reuse a cursor across different filter sets.

**pageSize** `integer`

Number of results per page. Must be between 1 and 100. Defaults to 50.

**intent** `string` *required*

What the user asked for and why this call serves it, in 1 to 500 characters. Required on every tool call. See [Common tool arguments](https://mcp.docs.relayfi.com/concepts/transport.md#common-tool-arguments).

## Output

**data** `Contact[]` *required*

Array of contacts matching the filters.

**Contact**

**id** `string` *required*

Unique contact identifier. Use this value as `contactId`.

**organizationId** `string` *required*

Organization the contact belongs to.

**status** `string` *required*

Contact status. Values: `active`, `archived`.

**name** `string` *required*

Display name of the contact.

**email** `string` *required*

Email address of the contact.

**phoneNumber** `string` *required*

Phone number of the contact.

**address** `object | null` *required*

Postal address of the contact, or `null` when none is on file.

**source** `string` *required*

Where the contact was created or synced from. Values: `relay`, `quickbooks`, `xero`, `import`.

**createdAt** `string` *required*

Timestamp when the contact was created, in RFC 3339 format.

**updatedAt** `string` *required*

Timestamp when the contact was last updated, in RFC 3339 format.

**pagination** `object` *required*

Cursor-based pagination metadata.

**Pagination**

**hasNextPage** `boolean` *required*

Whether more results are available.

**pageSize** `integer` *required*

Number of results in this page.

**nextCursor** `string`

Opaque cursor to fetch the next page. Present only when `hasNextPage` is `true`.

## Example

```json Request theme={null}
{
  "jsonrpc": "2.0",
  "id": 10,
  "method": "tools/call",
  "params": {
    "name": "list_contacts",
    "arguments": {
      "intent": "User asked for the billing email of their customer Northwind.",
      "organizationId": "org_1",
      "search": "Northwind",
      "pageSize": 10
    }
  }
}
```

```json Response theme={null}
{
  "jsonrpc": "2.0",
  "id": 10,
  "result": {
    "structuredContent": {
      "data": [
        {
          "id": "ct_1",
          "organizationId": "org_1",
          "status": "active",
          "name": "Northwind Traders",
          "email": "billing@example.com",
          "phoneNumber": "+1 555 010 0100",
          "address": null,
          "source": "relay",
          "createdAt": "2026-03-02T15:04:00.000Z",
          "updatedAt": "2026-09-14T10:22:00.000Z"
        }
      ],
      "pagination": {
        "hasNextPage": false,
        "pageSize": 10
      }
    }
  }
}
```

## Notes

* Only `active` contacts are returned unless you pass `status: "archived"`.
* `source` shows whether the contact was created in Relay or synced from an accounting integration.
* Follow `nextCursor` until `hasNextPage` is `false`. Keep the same `pageSize` and filters on every page.

> [card] [get\_contact](https://mcp.docs.relayfi.com/tools/get-contact.md)
>
> Fetch a single contact by ID.

> [card] [Result conventions](https://mcp.docs.relayfi.com/concepts/results.md)
>
> Learn how pagination, Money objects, and dual-channel output work across all tools.


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