> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dataturner.io/llms.txt
> Use this file to discover all available pages before exploring further.

# get_workflow

> Read a workflow by workflow_key or definition_id.

| Scope | Access | Description |
| - | - | - |
| `workflows:read` | Read-only | Read a workflow by workflow\_key or definition\_id. |

## Parameters

| Name | Required | Description |
| - | - | - |
| definition\_id | No | Definition Id |
| workflow\_key | No | Workflow Key |

## Input schema

```json theme={null}
{
  "additionalProperties": false,
  "properties": {
    "definition_id": {
      "anyOf": [
        {
          "format": "uuid",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Definition Id"
    },
    "workflow_key": {
      "anyOf": [
        {
          "maxLength": 120,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Workflow Key"
    }
  },
  "title": "GetWorkflowIn",
  "type": "object"
}
```

## Example request

Replace the example identifier with one you can read.

```json theme={null}
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workflow_key": "example_workflow"
    },
    "name": "get_workflow"
  }
}
```


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