LemuAI

Validate Workflow

Validate a workflow definition without executing it

Checks the current workflow definition for structural errors — missing required fields, invalid node configurations, broken edge references — without placing a call or creating a run.

If invalid, the response includes a list of errors each with a kind (node, edge, or workflow), the offending id, the field, and a human-readable message. See Errors for the full error schema.

POST/api/v1/workflow/{workflow_id}/validate

Parameters#

NameLocated inTypeRequiredDescription
workflow_idpathintegerYes—

Responses#

200 — Successful Response

{
  "is_valid": true,
  "errors": [
    {
      "kind": "node",
      "id": "123",
      "field": "string",
      "message": "string"
    }
  ]
}

404 — Not found

422 — Validation Error

{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

© 2026 LemuAI. Built with our own docs platform.