Check a workflow template for problems the builder warns about.
POST/api/v1/workflow-templates/lintworkflows:read
Warns about a Sub Workflow or Attachment Split step that starts a workflow with no Complete Workflow step or no Output Node. Pass workflow_template_id (its latest version, or workflow_template_version_id) or steps for a draft. Changes nothing.
| Scope | workflows:read |
| Asynchronous | No |
| MCP tool | lint_workflow_templates |
| Portal permissions | lint_workflow_templates |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional |
Request body
| Content type | Type |
|---|---|
application/json | WorkflowTemplateLintInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json WorkflowTemplateLintResult |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
WorkflowTemplateLintInput
| Field | Type | Required | Description |
|---|---|---|---|
steps | array of WorkflowTemplateStepInput | Optional | A draft's steps, instead of a saved template. |
workflow_template_id | string or null | Optional | A saved template, checked at its latest version. |
workflow_template_version_id | string or null | Optional | With workflow_template_id: check this version instead. |
WorkflowTemplateLintResult
| Field | Type | Required | Description |
|---|---|---|---|
warnings | array of WorkflowTemplateLintWarning | Required |
WorkflowTemplateLintWarning
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Required | |
message | string | Required | |
node_id | string | Required | |
severity | string | Required | |
workflow_template_id | string | Required |
WorkflowTemplateStepInput
| Field | Type | Required | Description |
|---|---|---|---|
inputs | array of WorkflowTemplateStepSettingInput | Optional | |
label | string or null | Optional | |
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 | Optional | A source step in the visible parent lineage whose unchanged credentials may be retained, independent of step identity. |
outputs | array of WorkflowTemplateStepOutputInput | Optional | |
previous_node_id | string or null | Optional | The step's node_id in the version it was copied from, so it keeps its identity; null for a new step. |
WorkflowTemplateStepOutputInput
| Field | Type | Required | Description |
|---|---|---|---|
response_node_id | string or null | Optional | |
type | string | Required | |
value | string or null | Optional |
WorkflowTemplateStepSettingInput
| Field | Type | Required | Description |
|---|---|---|---|
redacted | boolean | Optional | 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 | Optional |