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

# Affinity: V2 Lists List ID List Entries Search Post

> Search List Entries. Affinity V2 Lists List Id List Entries Search Post reference includes SDK V2 and CLI requests, input constraints, response fields,.

Search List Entries.

<Info>
  Tool ID: `affinity_v2_lists_list_id_list_entries_search_post`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'affinity_v2_lists_list_id_list_entries_search_post',
  {
    "listId": 123
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute affinity_v2_lists_list_id_list_entries_search_post --input '{
  "listId": 123
}' --json
```

## Example response

The static output schema is not detailed enough to generate a reliable example. Use `deepline tools get affinity_v2_lists_list_id_list_entries_search_post --json` for the complete live contract.

## Input reference

Search criteria for filtering, sorting, and searching. All fields are optional — omitting the body returns all results with default pagination.

| Name                 | Type      | Required | Default | Details                                                                                                                                                                                                                |
| -------------------- | --------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.listId`     | `integer` | Yes      | —       | The ID of the List to search Format: `int64`. Minimum: 1. Maximum: 9007199254740991.                                                                                                                                   |
| `payload.fieldIds`   | `array`   | No       | —       | Specific field IDs for which to return field data on each List Entry. Cannot be used together with `fieldTypes` — use one or the other. Use `GET /v2/lists/&#123;listId&#125;/fields` to discover available field IDs. |
| `payload.fieldTypes` | `array`   | No       | —       | A category of fields for which to return field data on each List Entry. Cannot be used together with `fieldIds` — use one or the other.                                                                                |
| `payload.cursor`     | `string`  | No       | —       | Cursor for the next or previous page.                                                                                                                                                                                  |
| `payload.limit`      | `integer` | No       | `100`   | Maximum number of List Entries to return per page Format: `int32`. Minimum: 1. Maximum: 100.                                                                                                                           |
| `payload.totalCount` | `boolean` | No       | `false` | When `true`, includes the total count of matching List Entries in the pagination response. Adds additional query cost; use only when needed.                                                                           |
| `payload.filters`    | `object`  | No       | —       | A logical group of filters combined with AND or OR. Groups can be nested to build complex filter trees. Each group may contain up to 50 items. Items can be individual filters or nested filter groups.                |
| `payload.sorts`      | `array`   | No       | —       | One or more sort criteria, applied in order. Supports up to 5 sort items. Use the relevant fields endpoint for your resource type to discover sortable fields. Minimum items: 1. Maximum items: 5.                     |
| `payload.search`     | `object`  | No       | —       | A single keyword or phrase to match against field values. Multiple terms or comma-separated values are not supported; use a single search string.                                                                      |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Search criteria for filtering, sorting, and searching. All fields are optional — omitting the body returns all results with default pagination.",
    "properties": {
      "listId": {
        "type": "integer",
        "description": "The ID of the List to search",
        "minimum": 1,
        "maximum": 9007199254740991,
        "format": "int64"
      },
      "fieldIds": {
        "type": "array",
        "description": "Specific field IDs for which to return field data on each List Entry. Cannot be used together with `fieldTypes` — use one or the other. Use `GET /v2/lists/{listId}/fields` to discover available field IDs.",
        "items": {
          "type": "string"
        }
      },
      "fieldTypes": {
        "type": "array",
        "description": "A category of fields for which to return field data on each List Entry. Cannot be used together with `fieldIds` — use one or the other.",
        "items": {
          "type": "string",
          "enum": [
            "enriched",
            "global",
            "list",
            "relationship-intelligence"
          ]
        }
      },
      "cursor": {
        "type": "string",
        "description": "Cursor for the next or previous page."
      },
      "limit": {
        "type": "integer",
        "description": "Maximum number of List Entries to return per page",
        "default": 100,
        "minimum": 1,
        "maximum": 100,
        "format": "int32"
      },
      "totalCount": {
        "type": "boolean",
        "description": "When `true`, includes the total count of matching List Entries in the pagination response. Adds additional query cost; use only when needed.",
        "default": false
      },
      "filters": {
        "type": "object",
        "description": "A logical group of filters combined with AND or OR. Groups can be nested to build complex filter trees. Each group may contain up to 50 items. Items can be individual filters or nested filter groups.",
        "properties": {
          "operator": {
            "type": "string",
            "description": "The logical operator applied to all filters in this group",
            "enum": [
              "and",
              "or"
            ]
          },
          "filters": {
            "type": "array",
            "description": "A list of filters or nested filter groups.",
            "minItems": 0,
            "maxItems": 50,
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "required": [
          "operator",
          "filters"
        ],
        "additionalProperties": false
      },
      "sorts": {
        "type": "array",
        "description": "One or more sort criteria, applied in order. Supports up to 5 sort items. Use the relevant fields endpoint for your resource type to discover sortable fields.",
        "minItems": 1,
        "maxItems": 5,
        "items": {
          "type": "object",
          "description": "A single sort criterion. Up to 5 sorts may be specified and are applied in order. Use the relevant fields endpoint for your resource type to discover sortable fields and valid `attributeId` values.",
          "properties": {
            "fieldId": {
              "type": "string",
              "description": "The ID of the field to sort on",
              "minLength": 1
            },
            "attributeId": {
              "type": "string",
              "description": "The ID of the attribute to sort on. Required for some fields such as relationship intelligence fields. Use the relevant fields endpoint for your resource type to discover which fields require an `attributeId` and what values are valid.",
              "minLength": 1
            },
            "direction": {
              "type": "string",
              "description": "The sort direction",
              "enum": [
                "asc",
                "desc"
              ]
            }
          },
          "required": [
            "fieldId",
            "direction"
          ],
          "additionalProperties": false
        }
      },
      "search": {
        "type": "object",
        "description": "A single keyword or phrase to match against field values. Multiple terms or comma-separated values are not supported; use a single search string.",
        "properties": {
          "term": {
            "type": "string",
            "description": "The text to search for. Minimum 3 characters.",
            "minLength": 3
          },
          "fieldIds": {
            "type": "array",
            "description": "The IDs of additional fields to match the term against, extending the default identity search. Use the relevant fields endpoint for your resource type to discover available field IDs. Supports up to 100 field IDs. Fields with a `valueType` of `datetime` are not searchable and are silently ignored if included.",
            "minItems": 1,
            "maxItems": 100,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "term"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "listId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name                                                                  | Type                                                                          | Required | Default | Details                                                 |
| --------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -------- | ------- | ------------------------------------------------------- |
| `result.data`                                                         | `object`                                                                      | Yes      | —       | —                                                       |
| `result.data.data`                                                    | `array \| null`                                                               | Yes      | —       | Maximum items: 100.                                     |
| `result.data.data[].id`                                               | `integer`                                                                     | Yes      | —       | Format: `int64`. Minimum: 1. Maximum: 9007199254740991. |
| `result.data.data[].type`                                             | `"company"`                                                                   | Yes      | —       | —                                                       |
| `result.data.data[].listId`                                           | `integer`                                                                     | Yes      | —       | Format: `int64`. Minimum: 1. Maximum: 9007199254740991. |
| `result.data.data[].createdAt`                                        | `string`                                                                      | Yes      | —       | Format: `date-time`.                                    |
| `result.data.data[].creatorId`                                        | `integer \| null`                                                             | Yes      | —       | Format: `int64`. Minimum: 1. Maximum: 9007199254740991. |
| `result.data.data[].entity`                                           | `object`                                                                      | Yes      | —       | —                                                       |
| `result.data.data[].entity.id`                                        | `integer`                                                                     | Yes      | —       | —                                                       |
| `result.data.data[].entity.name`                                      | `string`                                                                      | Yes      | —       | —                                                       |
| `result.data.data[].entity.domain`                                    | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.domains`                                   | `array`                                                                       | Yes      | —       | —                                                       |
| `result.data.data[].entity.isGlobal`                                  | `boolean`                                                                     | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields`                                    | `array`                                                                       | No       | —       | —                                                       |
| `result.data.data[].entity.fields[].id`                               | `string`                                                                      | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].name`                             | `string`                                                                      | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].type`                             | `"enriched" \| "global" \| "list" \| "relationship-intelligence" \| "hidden"` | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].enrichmentSource`                 | `"affinity-data" \| "dealroom" \| "eventbrite" \| "mailchimp" \| null`        | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value`                            | `object`                                                                      | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.type`                       | `"company-multi"`                                                             | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data`                       | `array \| null`                                                               | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].id`                  | `integer`                                                                     | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].name`                | `string`                                                                      | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].domain`              | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.totalCount`                 | `integer`                                                                     | No       | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].dropdownOptionId`    | `integer`                                                                     | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].text`                | `string`                                                                      | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].streetAddress`       | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].city`                | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].state`               | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].country`             | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].continent`           | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].firstName`           | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].lastName`            | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].primaryEmailAddress` | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.fields[].value.data[].type`                | `"internal" \| "collaborator" \| "external"`                                  | Yes      | —       | —                                                       |
| `result.data.data[].entity.listId`                                    | `integer`                                                                     | Yes      | —       | —                                                       |
| `result.data.data[].entity.isRestricted`                              | `boolean`                                                                     | Yes      | —       | —                                                       |
| `result.data.data[].entity.isRedacted`                                | `boolean`                                                                     | Yes      | —       | —                                                       |
| `result.data.data[].entity.firstName`                                 | `string`                                                                      | Yes      | —       | —                                                       |
| `result.data.data[].entity.lastName`                                  | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.primaryEmailAddress`                       | `string \| null`                                                              | Yes      | —       | —                                                       |
| `result.data.data[].entity.emailAddresses`                            | `array`                                                                       | Yes      | —       | —                                                       |
| `result.data.data[].entity.type`                                      | `"internal" \| "external"`                                                    | Yes      | —       | —                                                       |
| `result.data.pagination`                                              | `object`                                                                      | Yes      | —       | —                                                       |
| `result.data.pagination.prevUrl`                                      | `string \| null`                                                              | No       | —       | Format: `uri`.                                          |
| `result.data.pagination.nextUrl`                                      | `string \| null`                                                              | No       | —       | Format: `uri`.                                          |
| `result.meta`                                                         | `object`                                                                      | No       | —       | —                                                       |

<Info>
  This output schema is too large to embed without slowing the page. Get the complete live contract with `deepline tools get affinity_v2_lists_list_id_list_entries_search_post --json`.
</Info>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Affinity provider guide](/docs/providers/affinity/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
