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

# Clarify: Get Lists

> List an object’s lists. Clarify Get Lists reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List an object’s lists.

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

## 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(
  'clarify_get_lists',
  {
    "workspace": "example",
    "object": "example"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_get_lists --input '{
  "workspace": "example",
  "object": "example"
}'
```

## 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": {
    "links": {
      "next": "example",
      "prev": "example"
    },
    "meta": {
      "total_records": 123,
      "total_pages": 123
    },
    "data": [
      {
        "type": "list",
        "id": "id_123",
        "attributes": {
          "_id": "_123",
          "user_id": "user_123",
          "entity": "example",
          "title": "VP of Engineering",
          "emoji": "example",
          "description": "Example description",
          "type": "dynamic",
          "state": "draft",
          "layout": "table",
          "owner_id": "owner_123",
          "rank": 123,
          "list_evaluation_status": "idle",
          "list_evaluation_started_at": "2026-01-15T12:00:00Z",
          "last_list_evaluation_at": "2026-01-15T12:00:00Z",
          "_updated_at": "2026-01-15T12:00:00Z",
          "_updated_by": "2026-01-15T12:00:00Z",
          "_created_at": "2026-01-15T12:00:00Z",
          "_created_by": "example"
        }
      }
    ]
  }
}
```

Use `deepline describe clarify_get_lists --json` for the latest machine-readable contract.

## Input reference

Returns the lists defined on an object type as a paginated JSON:API collection. Dynamic lists are excluded unless you pass a matching `filter`.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.object` | `string` | Yes | — | The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`). |
| `payload.page` | `object` | No | `&#123;"offset":0,"limit":500&#125;` | Offset pagination, e.g. `page[offset]=0&page[limit]=100`. |
| `payload.sortOrder` | `object` | No | — | Sort order, e.g. `sortOrder[column]=_created_at&sortOrder[dir]=DESC`. |
| `payload.filter` | `object` | No | — | Nested filter object, e.g. `filter[type]=static&filter[state]=published`. When omitted, dynamic lists are excluded. |
| `payload.search` | `string` | No | — | Case-insensitive substring match against the list title. Minimum length: 1. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns the lists defined on an object type as a paginated JSON:API collection. Dynamic lists are excluded unless you pass a matching `filter`.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "object": {
        "type": "string",
        "description": "The object type: a built-in entity (`person`, `company`, `deal`, …) or a custom object (`c_*`)."
      },
      "page": {
        "type": "object",
        "description": "Offset pagination, e.g. `page[offset]=0&page[limit]=100`.",
        "default": {
          "offset": 0,
          "limit": 500
        },
        "properties": {
          "offset": {
            "type": "number",
            "description": "The number of records to skip before the first result.",
            "default": 0,
            "minimum": 0
          },
          "limit": {
            "type": "number",
            "description": "The maximum number of records to return per page (up to 2000).",
            "default": 500,
            "minimum": 1,
            "maximum": 2000
          }
        },
        "additionalProperties": false
      },
      "sortOrder": {
        "type": "object",
        "description": "Sort order, e.g. `sortOrder[column]=_created_at&sortOrder[dir]=DESC`.",
        "properties": {
          "column": {
            "type": "string",
            "description": "The field name to sort by.",
            "minLength": 1
          },
          "dir": {
            "type": "string",
            "description": "The sort direction.",
            "enum": [
              "ASC",
              "DESC"
            ]
          }
        },
        "required": [
          "column",
          "dir"
        ],
        "additionalProperties": false
      },
      "filter": {
        "type": "object",
        "description": "Nested filter object, e.g. `filter[type]=static&filter[state]=published`. When omitted, dynamic lists are excluded.",
        "properties": {
          "type": {
            "type": "string",
            "description": "The list type: `dynamic` (membership derives from a SQL query), `static` (an explicit set of records), or `default` (the object’s built-in list).",
            "enum": [
              "dynamic",
              "static",
              "default"
            ]
          },
          "state": {
            "type": "string",
            "description": "Whether the list is a `draft` or `published`.",
            "enum": [
              "draft",
              "published"
            ]
          },
          "_created_by": {
            "type": "string",
            "description": "The ID of the user who created the list."
          }
        },
        "additionalProperties": false
      },
      "search": {
        "type": "string",
        "description": "Case-insensitive substring match against the list title.",
        "minLength": 1
      }
    },
    "required": [
      "workspace",
      "object"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.links` | `object` | Yes | — | Pagination links. |
| `result.data.links.next` | `string \| null` | Yes | — | URL of the next page, or `null` on the last page. |
| `result.data.links.prev` | `string \| null` | Yes | — | URL of the previous page, or `null` on the first page. |
| `result.data.meta` | `object` | Yes | — | Pagination metadata. |
| `result.data.meta.total_records` | `number` | Yes | — | Total number of records across all pages. |
| `result.data.meta.total_pages` | `number` | Yes | — | Total number of pages at the current page size. |
| `result.data.data` | `array` | Yes | — | The page of resources. |
| `result.data.data[].type` | `"list"` | Yes | — | The resource type. matches the `object` path parameter. Allowed: `list`. |
| `result.data.data[].id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.data[].attributes` | `object` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.data[].attributes._id` | `string` | Yes | — | The unique ID of the list. |
| `result.data.data[].attributes.user_id` | `string` | Yes | — | The ID of the user who created the list. |
| `result.data.data[].attributes.entity` | `string` | Yes | — | The object type whose records the list holds, e.g. `deal`. |
| `result.data.data[].attributes.title` | `string` | Yes | — | The display name of the list. |
| `result.data.data[].attributes.emoji` | `string \| null` | Yes | — | The emoji shown next to the list, or `null` if unset. |
| `result.data.data[].attributes.description` | `string` | Yes | — | A short description of the list. |
| `result.data.data[].attributes.type` | `"dynamic" \| "static" \| "default"` | Yes | — | The list type: `dynamic` (membership derives from a SQL query), `static` (an explicit set of records), or `default` (the object’s built-in list). Allowed: `dynamic`, `static`, `default`. |
| `result.data.data[].attributes.state` | `"draft" \| "published"` | Yes | — | Whether the list is a `draft` or `published`. Allowed: `draft`, `published`. |
| `result.data.data[].attributes.layout` | `"table" \| "board"` | Yes | — | How the list is rendered in the app: `table` or `board`. Allowed: `table`, `board`. |
| `result.data.data[].attributes.options` | `object` | No | `&#123;&#125;` | View-level display options such as column widths and layout. |
| `result.data.data[].attributes.options.segmentedByInBoard` | `string` | No | — | For board layout, the field path whose values group records into columns. |
| `result.data.data[].attributes.options.showFieldNamesInBoard` | `boolean` | No | — | Whether field names are shown on cards in board layout. |
| `result.data.data[].attributes.options.columnWidths` | `record` | No | — | Table column pixel widths, keyed by field path. Absent keys use the default width. |
| `result.data.data[].attributes.options.columnMetrics` | `record` | No | — | The aggregation metric shown in the table footer for each column, keyed by field path (e.g. `sum`, `count`). |
| `result.data.data[].attributes.options.hiddenBoardColumns` | `record` | No | — | Board columns hidden from view, keyed by segment field path. Each value lists the hidden enum values for that field (`null` is the "Unassigned" column). |
| `result.data.data[].attributes.options.hiddenPrimaryCell` | `boolean` | No | — | Whether the primary (first) cell is hidden on cards in board layout. |
| `result.data.data[].attributes.query` | `object \| null` | No | `null` | For dynamic lists, the SQL query that defines membership. `null` for static and default lists. |
| `result.data.data[].attributes.query.sql` | `string` | Yes | — | The SQL query that defines the list membership and ordering. |
| `result.data.data[].attributes.query.nlq` | `string` | No | — | The original natural-language query, if the SQL was generated from one. |
| `result.data.data[].attributes.query.version` | `number` | No | — | The view query schema version, used for migrations. An omitted value is treated as version 0 (the oldest). |
| `result.data.data[].attributes.query.slow` | `boolean` | No | — | Whether the query is slow to evaluate, so membership refreshes at most every 6 hours instead of on every change. Set by Clarify and cleared when the query changes. |
| `result.data.data[].attributes.owner_id` | `string \| null` | Yes | — | The ID of the user who owns the list, or `null` if unowned. |
| `result.data.data[].attributes.rank` | `number` | Yes | — | The sort position of the list relative to its siblings. |
| `result.data.data[].attributes.applied_version_id` | `string \| null` | No | `null` | The ID of the currently applied list version, or `null`. |
| `result.data.data[].attributes.filter_fields` | `array \| null` | No | — | For dynamic lists, the `object.field` columns the query filters on, so a record change re-evaluates only lists it can affect. `null` when unknown. Set by Clarify whenever the query changes. |
| `result.data.data[].attributes.list_evaluation_status` | `"idle" \| "evaluating" \| "error"` | Yes | — | Whether the dynamic list is `idle`, currently `evaluating` its query, or in an `error` state. Allowed: `idle`, `evaluating`, `error`. |
| `result.data.data[].attributes.list_evaluation_started_at` | `string \| null` | Yes | — | When the current evaluation started, or `null` if none is running. Format: `date-time`. |
| `result.data.data[].attributes.last_list_evaluation_at` | `string \| null` | Yes | — | When the list was last evaluated, or `null` if never. Format: `date-time`. |
| `result.data.data[].attributes._updated_at` | `string` | Yes | — | When the list was last updated. Format: `date-time`. |
| `result.data.data[].attributes._updated_by` | `string` | Yes | — | The ID of the user who last updated the list. |
| `result.data.data[].attributes._created_at` | `string` | Yes | — | When the list was created. Format: `date-time`. |
| `result.data.data[].attributes._created_by` | `string` | Yes | — | The ID of the user who created the list. |
| `result.data.data[].attributes.effective_access_level` | `"owner" \| "edit" \| "view" \| "none"` | No | — | The requesting user's effective access to this list (`owner`, `edit`, `view`, or `none`). Allowed: `owner`, `edit`, `view`, `none`. |
| `result.data.data[].attributes.is_owner` | `boolean` | No | — | Whether the requesting user is the list owner. Excludes workspace admins, unlike `can_manage_access`. |
| `result.data.data[].attributes.can_manage_access` | `boolean` | No | — | Whether the requesting user may manage this list's share grants (its owner or a workspace permission-admin today). |
| `result.data.data[].relationships` | `object` | No | — | Related resources keyed by relationship name, present when requested via `include`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe clarify_get_lists --json`.

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

* [Connect integrations](https://deepline.com/docs/integrations.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.