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

# Validate a workflow graph without saving it



## OpenAPI

````yaml /api-reference/openapi.json post /v1/workflows/revisions/{revision_id}/graph/validate
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/workflows/revisions/{revision_id}/graph/validate:
    post:
      tags:
        - workflows
      summary: Validate a workflow graph without saving it
      operationId: validateWorkflowRevisionGraph
      parameters:
        - name: revision_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Revision Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkflowGraphRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowGraphValidationResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    WorkflowGraphRequest:
      properties:
        compiled_graph:
          additionalProperties: true
          type: object
          title: Compiled Graph
      type: object
      required:
        - compiled_graph
      title: WorkflowGraphRequest
      description: Body for validating or manually replacing a revision's compiled graph.
    WorkflowGraphValidationResponse:
      properties:
        valid:
          type: boolean
          title: Valid
        error_count:
          type: integer
          title: Error Count
        warning_count:
          type: integer
          title: Warning Count
        suggestion_count:
          type: integer
          title: Suggestion Count
        findings:
          items:
            $ref: '#/components/schemas/ValidationFinding'
          type: array
          title: Findings
        normalized_graph:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Normalized Graph
      type: object
      required:
        - valid
        - error_count
        - warning_count
        - suggestion_count
      title: WorkflowGraphValidationResponse
      description: Validation result for a submitted ``CompiledWorkflowGraph`` payload.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationFinding:
      properties:
        severity:
          type: string
          enum:
            - error
            - warning
            - suggestion
          title: Severity
        rule_id:
          type: string
          title: Rule Id
        category:
          type: string
          title: Category
        message:
          type: string
          title: Message
        node_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Node Id
        edge_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Edge Id
        related_node_ids:
          items:
            type: string
          type: array
          title: Related Node Ids
        related_edge_ids:
          items:
            type: string
          type: array
          title: Related Edge Ids
        source_span:
          anyOf:
            - $ref: '#/components/schemas/SourceSpan'
            - type: 'null'
        suggested_fix:
          anyOf:
            - type: string
            - type: 'null'
          title: Suggested Fix
        related_spans:
          items:
            $ref: '#/components/schemas/SourceSpan'
          type: array
          title: Related Spans
      type: object
      required:
        - severity
        - rule_id
        - category
        - message
      title: ValidationFinding
      description: >-
        Graph-validator finding (Stage 7 — over the assembled graph).


        For cross-cutting issues (variable drift, gate-consistency) the
        validator

        populates ``related_node_ids`` so the healer can regen multiple nodes in

        coordination instead of one at a time.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    SourceSpan:
      properties:
        start_line:
          type: integer
          title: Start Line
        start_col:
          type: integer
          title: Start Col
        end_line:
          type: integer
          title: End Line
        end_col:
          type: integer
          title: End Col
        raw_text_excerpt:
          anyOf:
            - type: string
            - type: 'null'
          title: Raw Text Excerpt
      type: object
      required:
        - start_line
        - start_col
        - end_line
        - end_col
      title: SourceSpan
      description: |-
        Byte/character span into the original instruction markdown.

        ``start_line``/``end_line`` are 1-indexed; columns are 0-indexed. The
        optional ``raw_text_excerpt`` carries a small slice for human-readable
        error messages without forcing readers to re-open the source.
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````