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

> Get a workflow. Clarify Get Workflow reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Get a workflow.

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

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

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

### CLI

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

## Example response

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

## Input reference

Returns a single workflow as a JSON:API resource, including its trigger and the blocks that make up its automation graph.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.id` | `string` | Yes | — | The unique ID of the workflow. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns a single workflow as a JSON:API resource, including its trigger and the blocks that make up its automation graph.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "id": {
        "type": "string",
        "description": "The unique ID of the workflow."
      }
    },
    "required": [
      "workspace",
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | Yes | — | The resource. |
| `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_workflow --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.