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

# Affinity

> An Affinity relationship CRM: companies, people and opportunities with their field data, lists and saved views, relationship strength, and notes.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/affinity.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=2d23aa6d94c98ec311d09a74a27f07fe)

[Web Catalog · Analytics](https://docs.webrouter.net/data-apis.md?category=analytics)

Needs&#x20;

`AFFINITY_API_KEY`

Endpoints

14

Auth

Key in header

[Vendor docs](https://developer.affinity.co/pages/external-api-v2/introduction)

&#x20;·&#x20;

[Pricing](https://www.affinity.co/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `AFFINITY_API_KEY` | required | an Affinity API key from Settings > Manage Apps (needs the Generate an API key permission); it reads as its user |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every call pins API version 2026-09-17 with the X-Affinity-Api-Version header.
* Field data comes back only for the fields named in fieldIds or fieldTypes; get the ids from the fields calls. Several values repeat the key (fieldIds=a\&fieldIds=b).
* Paging is a cursor: follow pagination.nextUrl, or pass its cursor.
* Limits: 900 requests per user per minute; monthly calls by plan (Scale and Advanced 100k, Enterprise unlimited); 429 when hit. Calls to API v1 and v2 share the pool.

## Endpoints

GET

Identify the key

The key's user, organization and API permissions.

[Open](#affinity-whoami)

GET

List companies

Companies with their non-list field data, page by page.

[Open](#affinity-companies-list)

POST

Search companies

Companies matching a keyword, field filters and sorts.

[Open](#affinity-companies-search)

GET

Get a company

One company with the field data asked for.

[Open](#affinity-companies-get)

GET

Get a company's relationships

Pairs of people connected through a company with an interaction score from emails, meetings and chats.

[Open](#affinity-companies-relationships)

GET

List company fields

Ids, names and types of the non-list company fields, to ask for their data.

[Open](#affinity-companies-fields)

GET

List persons

People with their non-list field data, page by page.

[Open](#affinity-persons-list)

POST

Search persons

People matching a keyword, field filters and sorts.

[Open](#affinity-persons-search)

GET

List lists

Every list the key can see, with owner and privacy.

[Open](#affinity-lists-list)

GET

List a list's fields

Ids, names and types of the fields on one list, including list-specific ones.

[Open](#affinity-lists-fields)

GET

List a list's entries

The rows of a list (companies, people or opportunities) with list-specific field data.

[Open](#affinity-lists-entries)

GET

List a saved view's entries

The rows of a saved view, with its filters and only its columns' field data.

[Open](#affinity-lists-view-entries)

GET

List opportunities

Opportunities' basic information; their field data comes from list entries.

[Open](#affinity-opportunities-list)

GET

List notes

Notes (not replies), filterable by creator and dates.

[Open](#affinity-notes-list)

### Identify the key

GET

`/v2/auth/whoami`

`affinity.whoami`

The key's user, organization and API permissions.

Input

No inputs.

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/auth/get-current-user)

```python Python theme={null}
router.call_data_api("affinity.whoami")
```

```text MCP theme={null}
call_data_api(endpoint="affinity.whoami")
```

### List companies

GET

`/v2/companies`

`affinity.companies.list`

Companies with their non-list field data, page by page.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `ids`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only these company ids.
      </td>
    </tr>

    <tr>
      <td>
        `fieldIds`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field ids to return data for, each sent as its own fieldIds; find them with the fields calls. Without fieldIds or fieldTypes no field data comes back.
      </td>
    </tr>

    <tr>
      <td>
        `fieldTypes`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field categories to return data for, each sent as its own fieldTypes: enriched, global, relationship-intelligence. Not with fieldIds.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/companies/get-all-companies) · Same job: [Close](https://docs.webrouter.net/data-apis/close-crm.md#close-crm-leads-list), [Pipedrive](https://docs.webrouter.net/data-apis/pipedrive.md#pipedrive-organizations-list)

```python Python theme={null}
router.call_data_api("affinity.companies.list")
```

```text MCP theme={null}
call_data_api(endpoint="affinity.companies.list")
```

### Search companies

POST

`/v2/companies/search`

`affinity.companies.search`

Companies matching a keyword, field filters and sorts.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `fieldIds`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field ids to return data for. Not with fieldTypes.
      </td>
    </tr>

    <tr>
      <td>
        `fieldTypes`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field categories to return data for: enriched, global, relationship-intelligence. Not with fieldIds.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `totalCount`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add the total match count; costs more.
      </td>
    </tr>

    <tr><td>`search`</td><td>object</td><td>body</td><td>\{"term": text of 3+ characters, "fieldIds": \[more fields to match]}; the term always matches name and primary domain (or name and emails). Example `{"term": "Acme"}`</td></tr>
    <tr><td>`filters`</td><td>object</td><td>body</td><td>A filter group: \{"operator": "and"|"or", "filters": \[\{fieldId, valueType, operator, value}]}, nestable, up to 50 items per group. Example `{"operator": "and", "filters": [{"fieldId": "last-email", "attributeId": "date-of-activity", "valueType": "date", "operator": "is-within-the-last", "value": {"amount": [30], "unit": "day"}}]}`</td></tr>

    <tr>
      <td>
        `sorts`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Up to 5 sorts: \[\{fieldId, direction: asc|desc}].
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/companies/search-companies)

```python Python theme={null}
router.call_data_api("affinity.companies.search", {'search': {'term': 'Acme'}, 'filters': {'operator': 'and', 'filters': [{'fieldId': 'last-email', 'attributeId': 'date-of-activity', 'valueType': 'date', 'operator': 'is-within-the-last', 'value': {'amount': [30], 'unit': 'day'}}]}})
```

```text MCP theme={null}
call_data_api(endpoint="affinity.companies.search", params={"search": {"term": "Acme"}, "filters": {"operator": "and", "filters": [{"fieldId": "last-email", "attributeId": "date-of-activity", "valueType": "date", "operator": "is-within-the-last", "value": {"amount": [30], "unit": "day"}}]}})
```

> [!NOTE]
>
> * A POST that only searches; it changes nothing. Beta.
> * Needs the Export All Organizations directory permission. With no body it lists all companies.

### Get a company

GET

`/v2/companies/{companyId}`

`affinity.companies.get`

One company with the field data asked for.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `companyId`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        The company id.
      </td>
    </tr>

    <tr>
      <td>
        `fieldIds`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field ids to return data for, each sent as its own fieldIds; find them with the fields calls. Without fieldIds or fieldTypes no field data comes back.
      </td>
    </tr>

    <tr>
      <td>
        `fieldTypes`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field categories to return data for, each sent as its own fieldTypes: enriched, global, relationship-intelligence. Not with fieldIds.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/companies/get-a-single-company) · Same job: [Close](https://docs.webrouter.net/data-apis/close-crm.md#close-crm-leads-get)

### Get a company's relationships

GET

`/v2/companies/{companyId}/relationships`

`affinity.companies.relationships`

Pairs of people connected through a company with an interaction score from emails, meetings and chats.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `companyId`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        The company id.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter expression.
      </td>
    </tr>

    <tr><td>`orderBy`</td><td>string</td><td>query</td><td>interactionScore or -interactionScore (the default). One of `interactionScore`, `-interactionScore`</td></tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 20 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `totalCount`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add the total count.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/companies/get-relationships-for-a-company)

> [!NOTE]
>
> * interactionScore runs from 0.0 to 1.0.

### List company fields

GET

`/v2/companies/fields`

`affinity.companies.fields`

Ids, names and types of the non-list company fields, to ask for their data.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter expression on the fields.
      </td>
    </tr>

    <tr>
      <td>
        `includes`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Extra properties: filterability, sortability.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/companies/get-metadata-on-company-fields) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata), [CISA Known Exploited Vulnerabilities (KEV) catalog](https://docs.webrouter.net/data-apis/cisa-kev.md#cisa-kev-catalog-schema)

```python Python theme={null}
router.call_data_api("affinity.companies.fields")
```

```text MCP theme={null}
call_data_api(endpoint="affinity.companies.fields")
```

### List persons

GET

`/v2/persons`

`affinity.persons.list`

People with their non-list field data, page by page.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `ids`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only these person ids.
      </td>
    </tr>

    <tr>
      <td>
        `fieldIds`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field ids to return data for, each sent as its own fieldIds; find them with the fields calls. Without fieldIds or fieldTypes no field data comes back.
      </td>
    </tr>

    <tr>
      <td>
        `fieldTypes`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field categories to return data for, each sent as its own fieldTypes: enriched, global, relationship-intelligence. Not with fieldIds.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/persons/get-all-persons) · Same job: [Close](https://docs.webrouter.net/data-apis/close-crm.md#close-crm-contacts-list), [Pipedrive](https://docs.webrouter.net/data-apis/pipedrive.md#pipedrive-persons-list)

```python Python theme={null}
router.call_data_api("affinity.persons.list")
```

```text MCP theme={null}
call_data_api(endpoint="affinity.persons.list")
```

### Search persons

POST

`/v2/persons/search`

`affinity.persons.search`

People matching a keyword, field filters and sorts.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `fieldIds`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field ids to return data for. Not with fieldTypes.
      </td>
    </tr>

    <tr>
      <td>
        `fieldTypes`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field categories to return data for: enriched, global, relationship-intelligence. Not with fieldIds.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `totalCount`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add the total match count; costs more.
      </td>
    </tr>

    <tr><td>`search`</td><td>object</td><td>body</td><td>\{"term": text of 3+ characters, "fieldIds": \[more fields to match]}; the term always matches name and primary domain (or name and emails). Example `{"term": "Acme"}`</td></tr>
    <tr><td>`filters`</td><td>object</td><td>body</td><td>A filter group: \{"operator": "and"|"or", "filters": \[\{fieldId, valueType, operator, value}]}, nestable, up to 50 items per group. Example `{"operator": "and", "filters": [{"fieldId": "last-email", "attributeId": "date-of-activity", "valueType": "date", "operator": "is-within-the-last", "value": {"amount": [30], "unit": "day"}}]}`</td></tr>

    <tr>
      <td>
        `sorts`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Up to 5 sorts: \[\{fieldId, direction: asc|desc}].
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/persons/search-persons)

```python Python theme={null}
router.call_data_api("affinity.persons.search", {'search': {'term': 'Acme'}, 'filters': {'operator': 'and', 'filters': [{'fieldId': 'last-email', 'attributeId': 'date-of-activity', 'valueType': 'date', 'operator': 'is-within-the-last', 'value': {'amount': [30], 'unit': 'day'}}]}})
```

```text MCP theme={null}
call_data_api(endpoint="affinity.persons.search", params={"search": {"term": "Acme"}, "filters": {"operator": "and", "filters": [{"fieldId": "last-email", "attributeId": "date-of-activity", "valueType": "date", "operator": "is-within-the-last", "value": {"amount": [30], "unit": "day"}}]}})
```

> [!NOTE]
>
> * A POST that only searches; it changes nothing. Beta.
> * Needs the Export All People directory permission.

### List lists

GET

`/v2/lists`

`affinity.lists.list`

Every list the key can see, with owner and privacy.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `term`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only lists whose name contains this, case-insensitive.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/lists/get-metadata-on-all-lists) · Same job: [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-lists-list), [Exa](https://docs.webrouter.net/data-apis/exa.md#exa-websets-list), [Happenstance](https://docs.webrouter.net/data-apis/happenstance.md#happenstance-groups-list), [Mention](https://docs.webrouter.net/data-apis/mention.md#mention-tags-list), [Origami](https://docs.webrouter.net/data-apis/origami.md#origami-lists-list), [Sprout Social](https://docs.webrouter.net/data-apis/sprout-social.md#sprout-social-metadata-groups)

```python Python theme={null}
router.call_data_api("affinity.lists.list")
```

```text MCP theme={null}
call_data_api(endpoint="affinity.lists.list")
```

### List a list's fields

GET

`/v2/lists/{listId}/fields`

`affinity.lists.fields`

Ids, names and types of the fields on one list, including list-specific ones.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `listId`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        The list id.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Filter expression on the fields.
      </td>
    </tr>

    <tr>
      <td>
        `includes`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Extra properties: filterability, sortability.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/lists/get-metadata-on-a-single-lists-fields) · Same job: [ArcGIS Online](https://docs.webrouter.net/data-apis/arcgis.md#arcgis-items-get), [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-attributes-list), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-series-get), [US Bureau of Economic Analysis](https://docs.webrouter.net/data-apis/bea.md#bea-parameters-list), [Bright Data](https://docs.webrouter.net/data-apis/brightdata.md#brightdata-datasets-metadata), [CISA Known Exploited Vulnerabilities (KEV) catalog](https://docs.webrouter.net/data-apis/cisa-kev.md#cisa-kev-catalog-schema)

### List a list's entries

GET

`/v2/lists/{listId}/list-entries`

`affinity.lists.entries`

The rows of a list (companies, people or opportunities) with list-specific field data.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `listId`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        The list id.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `fieldIds`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field ids to return data for, each sent as its own fieldIds; find them with the fields calls. Without fieldIds or fieldTypes no field data comes back.
      </td>
    </tr>

    <tr>
      <td>
        `fieldTypes`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Field categories to return data for: enriched, global, list, relationship-intelligence. Not with fieldIds.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/lists/get-all-list-entries-on-a-list) · Same job: [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-entries-query), [Exa](https://docs.webrouter.net/data-apis/exa.md#exa-websets-items-list), [HubSpot](https://docs.webrouter.net/data-apis/hubspot.md#hubspot-objects-list), [Origami](https://docs.webrouter.net/data-apis/origami.md#origami-rows-list)

### List a saved view's entries

GET

`/v2/lists/{listId}/saved-views/{viewId}/list-entries`

`affinity.lists.view_entries`

The rows of a saved view, with its filters and only its columns' field data.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `listId`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        The list id.
      </td>
    </tr>

    <tr>
      <td>
        `viewId`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        The saved view id.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/lists/get-all-list-entries-on-a-saved-view) · Same job: [Attio](https://docs.webrouter.net/data-apis/attio.md#attio-entries-query), [Exa](https://docs.webrouter.net/data-apis/exa.md#exa-websets-items-list), [HubSpot](https://docs.webrouter.net/data-apis/hubspot.md#hubspot-objects-list), [Origami](https://docs.webrouter.net/data-apis/origami.md#origami-rows-list)

### List opportunities

GET

`/v2/opportunities`

`affinity.opportunities.list`

Opportunities' basic information; their field data comes from list entries.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 100; 100 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `ids`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Only these opportunity ids.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/opportunities/get-all-opportunities) · Same job: [Close](https://docs.webrouter.net/data-apis/close-crm.md#close-crm-opportunities-list), [Pipedrive](https://docs.webrouter.net/data-apis/pipedrive.md#pipedrive-deals-list)

```python Python theme={null}
router.call_data_api("affinity.opportunities.list")
```

```text MCP theme={null}
call_data_api(endpoint="affinity.opportunities.list")
```

> [!NOTE]
>
> * Needs the Export data from Lists permission.

### List notes

GET

`/v2/notes`

`affinity.notes.list`

Notes (not replies), filterable by creator and dates.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`filter`</td><td>string</td><td>query</td><td>Filter expression, e.g. creator.id=1 or createdAt>2026-11-01T00:00:00Z. Example `createdAt>2026-11-01T00:00:00Z`</td></tr>

    <tr>
      <td>
        `includes`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Extras: companiesPreview, personsPreview, opportunitiesPreview, repliesCount.
      </td>
    </tr>

    <tr>
      <td>
        `cursor`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        The cursor from pagination.nextUrl of the previous page.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, up to 100; 20 when omitted.
      </td>
    </tr>

    <tr>
      <td>
        `totalCount`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Add the total count.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.affinity.co/api-reference/2026-09-17/notes/get-all-notes)

```python Python theme={null}
router.call_data_api("affinity.notes.list", {'filter': 'createdAt>2026-11-01T00:00:00Z'})
```

```text MCP theme={null}
call_data_api(endpoint="affinity.notes.list", params={"filter": "createdAt>2026-11-01T00:00:00Z"})
```


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