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

> List workflows. Clarify Get Workflows reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

List workflows.

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

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

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

### CLI

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

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe clarify_get_workflows --json` for the complete live contract.

## Input reference

Returns the workspace’s workflows as an offset-paginated list of JSON:API resources. Use the `type` filter to return only sequences (campaigns) or general workflows.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `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 | — | Filters applied to the workflow list. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns the workspace’s workflows as an offset-paginated list of JSON:API resources. Use the `type` filter to return only sequences (campaigns) or general workflows.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "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 500).",
            "default": 500,
            "minimum": 1,
            "maximum": 500
          }
        },
        "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": "Filters applied to the workflow list.",
        "properties": {
          "type": {
            "type": "array",
            "description": "One or more workflow types to return, comma-separated or repeated, e.g. `filter[type]=sequence,workflow`. Case-insensitive; omit to return every type.",
            "items": {
              "type": "string",
              "enum": [
                "sequence",
                "system",
                "workflow"
              ]
            }
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "workspace"
    ],
    "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` | `"workflow"` | Yes | — | The resource type. matches the `object` path parameter. Allowed: `workflow`. |
| `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 workflow. |
| `result.data.data[].attributes.name` | `string` | Yes | — | The workflow’s display name. |
| `result.data.data[].attributes.description` | `string` | Yes | — | A human-readable description of the workflow. |
| `result.data.data[].attributes.enabled` | `boolean` | Yes | — | Whether the workflow is active and processing triggers. |
| `result.data.data[].attributes.enabled_by` | `string \| null` | No | — | The ID of the user who first enabled the workflow. |
| `result.data.data[].attributes.published_at` | `string \| null` | Yes | — | The time the workflow was published, or null if it has never been published. |
| `result.data.data[].attributes.exits` | `record` | No | `&#123;&#125;` | Exit blocks keyed by block id, run when a record leaves the workflow. |
| `result.data.data[].attributes.run_limits` | `object` | No | `&#123;&#125;` | Limits on how often a record can run through the workflow. |
| `result.data.data[].attributes.run_limits.max_runs_per_record` | `number \| null` | No | — | The maximum number of runs allowed per record. Null means unlimited. |
| `result.data.data[].attributes.run_limits.cooldown_period_days` | `number \| null` | No | — | The number of days a record must wait before it can re-enter the workflow. |
| `result.data.data[].attributes._created_at` | `string` | Yes | — | The time the workflow was created. |
| `result.data.data[].attributes._created_by` | `string` | Yes | — | The ID of the user who created the workflow. |
| `result.data.data[].attributes._updated_at` | `string` | Yes | — | The time the workflow was last updated. |
| `result.data.data[].attributes._updated_by` | `string` | Yes | — | The ID of the user who last updated the workflow. |
| `result.data.data[].attributes.type` | `"sequence"` | Yes | — | The workflow type. `sequence` workflows are email sequences (campaigns). |
| `result.data.data[].attributes.trigger` | `object` | Yes | — | The block that starts each run. |
| `result.data.data[].attributes.trigger._id` | `string` | Yes | — | The block identifier, unique within the workflow. The trigger block is always `trigger`. |
| `result.data.data[].attributes.trigger.plugin_id` | `"clarify:email-validation" \| "clarify:send:email" \| "clarify:linkedin:visit" \| "clarify:linkedin:connect" \| "clarify:linkedin:message" \| "clarify:linkedin:inmail" \| "general:delay:for" \| "on:clarify:add-to-list" \| "on:manual:execution"` | Yes | — | The plugin that defines what this block does, restricted to plugins valid in sequence workflows. |
| `result.data.data[].attributes.trigger.filters` | `array` | Yes | — | Conditions that must all pass for the block to run. |
| `result.data.data[].attributes.trigger.filters[].field` | `string` | Yes | — | The path to the value the condition is tested against (for example `state.event.object.data.person.name`). |
| `result.data.data[].attributes.trigger.filters[].condition` | `record` | Yes | — | The condition the field value must satisfy for the block to run. |
| `result.data.data[].attributes.trigger.input` | `record` | Yes | — | The block’s configuration, keyed by input name. |
| `result.data.data[].attributes.trigger.prev` | `string \| null` | Yes | — | The `_id` of the previous block, or null for the trigger. |
| `result.data.data[].attributes.trigger.next` | `string \| null` | Yes | — | The `_id` of the next block, or null for the last block. |
| `result.data.data[].attributes.blocks` | `record` | Yes | — | The workflow’s blocks keyed by block id. |
| `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_workflows --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.