> ## 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 the fields you can filter Lemlist tasks by, including your custom fields. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

List the fields you can filter Lemlist tasks by, including your custom fields.

> [!NOTE]
>
> Tool ID: `lemlist_get_v2_tasks_filters`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute lemlist_get_v2_tasks_filters --input '{
  "scope": "task",
  "search": "software companies hiring engineers"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "results": [
      {
        "field": "email",
        "label": "example",
        "scope": "task"
      }
    ],
    "total": 123
  }
}
```

Use `deepline describe 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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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](https://deepline.com/docs/providers/lemlist/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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