Overview
Validate a workflow by ID to catch errors before execution. Checks node configurations, connections, expressions, and overall workflow structure.Endpoint
Request Parameters
Workflow ID to validateExample:
"wf_abc123"Validation options
Response
Operation success status
Validation result
Validation Error Types
Node Configuration Errors
Cause: Required node parameter not setExample: HTTP Request node missing
url parameterResolution: Provide the required parameter valueCause: Parameter value has wrong data typeExample: Numeric field contains string valueResolution: Correct the parameter type
Cause: Parameter value not in allowed optionsExample: HTTP method set to “PATCH” when only GET/POST allowedResolution: Use an allowed value
Connection Errors
Cause: Node not connected to workflow flowResolution: Connect node or remove it
Cause: Connection references non-existent nodeResolution: Use
cleanStaleConnections operationCause: Workflow has no trigger nodeResolution: Add a trigger (Webhook, Schedule, Manual, etc.)
Expression Errors
Cause: Malformed n8n expressionExample:
{{{ $json.field }}} (too many braces)Resolution: Fix expression syntaxCause: Expression missing
= prefixExample: {{ $json.value }} should be ={{ $json.value }}Resolution: Auto-fixed by n8n_autofix_workflow toolCause: Expression references non-existent nodeExample:
={{ $node['Missing Node'].json.value }}Resolution: Correct node name or remove referenceExamples
Response Examples
Validation Profiles
- minimal
- runtime (Default)
- ai-friendly
- strict
Use Case: Quick checks during developmentValidates:
- Required parameters only
- Basic structure
- Optional parameters
- Warnings
- Suggestions
Workflow Validation Checklist
Structure
✅ At least one trigger node
✅ All nodes connected (no orphans)
✅ Valid connection structure
✅ No circular dependencies
Nodes
✅ All required parameters set
✅ Valid parameter types
✅ Credentials configured
✅ Node versions supported
Integration with Auto-Fix
Many validation errors can be automatically fixed with the
n8n_autofix_workflow tool:Best Practices
Related Endpoints
- Auto-Fix Workflow - Automatically fix validation errors
- Get Workflow - Fetch workflow for manual inspection
- Update Partial Workflow - Fix validation errors
- Create Workflow - Validate before creating