> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enginy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate workflow draft

> Publish-grade validation of the STORED draft of a workflow (does not validate a submitted payload). Returns blocking errors and non-blocking warnings.

Responses include direct Enginy app URLs when available. The response includes an `appUrl` to the workflow editor. MCP agents should return those URLs to users whenever they are present in the response.

    > **Required scope:** `WORKFLOWS_READ`
    >
    > **Rate limit:** 100 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json get /v1/workflow/{workflowId}/validate-draft
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/workflow/{workflowId}/validate-draft:
    get:
      tags:
        - Workflows
      summary: Validate workflow draft
      description: >-
        Publish-grade validation of the STORED draft of a workflow (does not
        validate a submitted payload). Returns blocking errors and non-blocking
        warnings.


        Responses include direct Enginy app URLs when available. The response
        includes an `appUrl` to the workflow editor. MCP agents should return
        those URLs to users whenever they are present in the response.

            > **Required scope:** `WORKFLOWS_READ`
            >
            > **Rate limit:** 100 requests per minute
      parameters:
        - schema:
            type: string
          required: true
          name: workflowId
          in: path
      responses:
        '200':
          description: Draft validated
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      workflowId:
                        type: number
                      appUrl:
                        type: string
                        format: uri
                      name:
                        type: string
                      isValid:
                        type: boolean
                      errors:
                        type: array
                        items:
                          type: string
                      warnings:
                        type: array
                        items:
                          type: string
                        description: Non-blocking validation warnings.
                    required:
                      - workflowId
                      - appUrl
                      - name
                      - isValid
                      - errors
                      - warnings
                required:
                  - status
                  - message
                  - data
        '400':
          description: The workflow ID is not a positive integer.
        '403':
          description: >-
            Advanced workflows are not enabled for this workspace. Ask your
            workspace admin to enable the feature.
        '404':
          description: Workflow not found or not accessible.
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````