Get workflow
get_workflowRetrieve a workflow's editable graph, metadata, and updatedAt for updates, or fetch a deployed version with its previous version to compare changes.
Instructions
Get one workflow's editable graph (nodes, edges, settings) and metadata, including the updatedAt value update_workflow requires. Pass versionNumber to instead get that deployed version's frozen graph together with the version before it (previousVersion, null for version 1), so you can see what changed; list_workflow_versions gives the numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes | The workflow's id, from list_workflows or create_workflow. | |
| versionNumber | No | A saved version to read instead of the current draft. Omit for the draft. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| edges | No | ||
| nodes | No | ||
| status | Yes | ||
| ownerId | Yes | ||
| version | No | ||
| settings | No | ||
| createdAt | No | ||
| updatedAt | Yes | ||
| authoredVia | No | ||
| previousVersion | No | ||
| authoredViaClient | No | ||
| deployedWorkerUrl | No |