Get one workflow template with its steps.
The current version's steps (node_id is the stable node ID) and settings. The builder canvas is added with include=canvas. Credentials are replaced by a redaction marker unless the caller has View Workflow Node Secrets: the Password, Token, TokenSecret and auth_request_config inputs, the value of every header in a Headers input (the names stay), and the same keys in the canvas. Editing credentials requires Edit Workflow Node Secrets. Send the marker back in a credential input (or a canvas credential key) to keep the credential the step stores when you save the template again with create_workflow_template or compile_workflow_template.
| |
|---|
| Scope | workflows:read |
| Asynchronous | No |
| MCP tool | get_workflow_template |
| Portal permissions | view_workflow_templates, view_workflow_node_configs, view_workflow_template_io |
Parameters
| Name | In | Type | Required | Description |
|---|
workflow_template_id | path | string | Required | |
include | query | string or null | Optional | canvas adds the builder canvas to the answer. |
Docwize-Version | header | string (date) | Optional | |
If-None-Match | header | string | Optional | Answers 304 when the representation is unchanged (resources that publish an ETag). |
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
WorkflowTemplateDetail
| Field | Type | Required | Description |
|---|
canvas | object or null | Required | The builder canvas (format workflow_canvas, version 1); null unless include=canvas. |
current_workflow_template_version_id | string | Required | |
entity_sub_type | string | Required | |
entity_type | string | Required | |
is_active | boolean | Required | |
name | string | Required | |
project_id | string or null | Required | |
redacted_count | integer | Required | Credential values replaced by the redaction marker in the steps and the canvas. Reading credentials requires View Workflow Node Secrets; changing them requires Edit Workflow Node Secrets. Sent back as the marker in a save, a hidden credential keeps the credential the step stores. ≥ -2147483648; ≤ 2147483647 |
settings | WorkflowTemplateSettings | Required | The template's settings, as its Start step holds them. |
steps | array of WorkflowTemplateStep | Required | |
workflow_template_group_id | string or null | Required | |
workflow_template_id | string | Required | |
workflow_template_version_id | string | Required | The version the steps, settings and canvas belong to: the current version for get_workflow_template, any version for get_workflow_template_version. |
WorkflowTemplateSettings
| Field | Type | Required | Description |
|---|
late_action_request_emails | boolean | Required | |
late_action_request_send_frequency_seconds | integer | Required | ≥ -2147483648; ≤ 2147483647 |
main_item_requires_actions | boolean | Required | |
notify_owner_about_action_response | boolean | Required | |
notify_owner_about_completion | boolean | Required | |
notify_owner_about_late_action_requests | boolean | Required | |
WorkflowTemplateStep
| Field | Type | Required | Description |
|---|
inputs | array of WorkflowTemplateStepSetting | Required | |
label | string or null | Required | |
node_id | string | Required | |
node_type | string | Required | The step type, as list_node_types names it (for example StartNode). |
original_node_id | string or null | Required | A source step in the visible parent lineage whose unchanged credentials may be retained, independent of step identity. |
outputs | array of WorkflowTemplateStepOutput | Required | |
previous_node_id | string or null | Required | The step's node_id in the version it was copied from, so it keeps its identity; null for a new step. |
WorkflowTemplateStepOutput
| Field | Type | Required | Description |
|---|
response_node_id | string or null | Required | |
type | string | Required | |
value | string or null | Required | |
WorkflowTemplateStepSetting
| Field | Type | Required | Description |
|---|
redacted | boolean | Required | true when the value is a redacted credential the read replaced. Send it back as the marker to keep the credential the step it continues stores (previous_node_id); a marker on a step with no stored credential is refused. |
type | string | Required | |
value | string or null | Required | |