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

# Lemlist: Get V2 Tasks Filters

> List Task Filters. Lemlist Get V2 Tasks Filters reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List Task Filters.

<Info>
  Tool ID: `lemlist_get_v2_tasks_filters`
</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(
  'lemlist_get_v2_tasks_filters',
  {
    "scope": "task",
    "search": "software companies hiring engineers"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute lemlist_get_v2_tasks_filters --input '{
  "scope": "task",
  "search": "software companies hiring engineers"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "results": [
      {
        "field": "email",
        "label": "example",
        "scope": "task"
      }
    ],
    "total": 123
  }
}
```

Use `deepline tools get lemlist_get_v2_tasks_filters --json` for the latest machine-readable contract.

## Input reference

Lists every field addressable by `advancedFilters` on `GET /v2/tasks`, with its type, its allowed operators and the flat query parameter that addresses it, when there is one. The team's custom fields are included.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.scope` | `"task" \| "contact" \| "company"` | No | — | Restricts the response to one section. Allowed: `task`, `contact`, `company`. |
| `payload.search` | `string` | No | — | Keeps the fields whose id or label contains this text. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Lists every field addressable by `advancedFilters` on `GET /v2/tasks`, with its type, its allowed operators and the flat query parameter that addresses it, when there is one. The team's custom fields are included.",
    "properties": {
      "scope": {
        "type": "string",
        "description": "Restricts the response to one section.",
        "enum": [
          "task",
          "contact",
          "company"
        ]
      },
      "search": {
        "type": "string",
        "description": "Keeps the fields whose id or label contains this text."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Response of `GET /v2/tasks/filters`. |
| `result.data.results` | `array` | No | — | — |
| `result.data.results[].field` | `string` | No | — | Field id, as used in an `advancedFilters` condition |
| `result.data.results[].label` | `string` | No | — | Human-readable name |
| `result.data.results[].scope` | `"task" \| "contact" \| "company"` | No | — | Section the field belongs to Allowed: `task`, `contact`, `company`. |
| `result.data.results[].type` | `"text" \| "number" \| "date" \| "enum" \| "relation" \| "tags" \| "boolean"` | No | — | Data type, which decides the allowed operators Allowed: `text`, `number`, `date`, `enum`, `relation`, `tags`, `boolean`. |
| `result.data.results[].custom` | `boolean` | No | — | True for a custom field of the team |
| `result.data.results[].operators` | `array` | No | — | Operators allowed on this field |
| `result.data.results[].queryParam` | `string \| null` | No | — | Flat query parameter addressing this field; `null` means `advancedFilters` only |
| `result.data.results[].values` | `array \| null` | No | — | Reserved — always `null` today |
| `result.data.total` | `integer` | No | — | — |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Response of `GET /v2/tasks/filters`.",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "One field addressable by `advancedFilters`.",
              "properties": {
                "field": {
                  "type": "string",
                  "description": "Field id, as used in an `advancedFilters` condition"
                },
                "label": {
                  "type": "string",
                  "description": "Human-readable name"
                },
                "scope": {
                  "type": "string",
                  "description": "Section the field belongs to",
                  "enum": [
                    "task",
                    "contact",
                    "company"
                  ]
                },
                "type": {
                  "type": "string",
                  "description": "Data type, which decides the allowed operators",
                  "enum": [
                    "text",
                    "number",
                    "date",
                    "enum",
                    "relation",
                    "tags",
                    "boolean"
                  ]
                },
                "custom": {
                  "type": "boolean",
                  "description": "True for a custom field of the team"
                },
                "operators": {
                  "type": "array",
                  "description": "Operators allowed on this field",
                  "items": {
                    "type": "string"
                  }
                },
                "queryParam": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Flat query parameter addressing this field; `null` means `advancedFilters` only"
                },
                "values": {
                  "type": [
                    "array",
                    "null"
                  ],
                  "description": "Reserved — always `null` today",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "total": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

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

* [Lemlist provider guide](/docs/providers/lemlist/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)


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