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

# List Workflow Versions

> List every immutable revision snapshot for a workflow.

Returns each revision's author/created_at and the snapshot's name +
step_count, plus the current ``head_revision`` and the ``published_revision``
pointer (None until published). Same read auth as GET /workflows/{id}
(sharing-aware).

API key permission: Agents (Admin also opens it).



## OpenAPI

````yaml /api-reference/openapi.json get /workflows/{workflow_id}/versions
openapi: 3.1.0
info:
  title: Neural Factory API
  version: 0.1.0
  description: >-
    The endpoints a program can call with an API key. Exchange the key's secret
    for a token at POST /apikeys/token and send it as a Bearer token.
servers:
  - url: https://api.neuralfactory.ai
    description: SaaS
  - url: https://{apiHost}
    description: 'Enterprise: the API address of your own deployment'
    variables:
      apiHost:
        default: api.example.com
        description: Your deployment's API host
security:
  - bearerAuth: []
tags:
  - name: API keys
  - name: Chat
  - name: Runs
  - name: Agents
  - name: Workflows
  - name: Schedules
  - name: Knowledge bases
  - name: Documents
  - name: Search
  - name: Skills
  - name: Toolkits
  - name: Files
  - name: Interactions
  - name: Usage and billing
  - name: Catalogue
  - name: Browser
  - name: Users
  - name: Groups
  - name: Builds
paths:
  /workflows/{workflow_id}/versions:
    get:
      tags:
        - Workflows
      summary: List Workflow Versions
      description: >-
        List every immutable revision snapshot for a workflow.


        Returns each revision's author/created_at and the snapshot's name +

        step_count, plus the current ``head_revision`` and the
        ``published_revision``

        pointer (None until published). Same read auth as GET /workflows/{id}

        (sharing-aware).


        API key permission: Agents (Admin also opens it).
      operationId: list_workflow_versions_workflows__workflow_id__versions_get
      parameters:
        - name: workflow_id
          in: path
          required: true
          schema:
            type: string
            title: Workflow Id
        - name: env
          in: query
          required: false
          schema:
            title: Env
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowVersionList'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    WorkflowVersionList:
      properties:
        items:
          items:
            $ref: '#/components/schemas/WorkflowVersionEntry'
          type: array
          title: Items
        head_revision:
          type: integer
          title: Head Revision
        published_revision:
          anyOf:
            - type: integer
            - type: 'null'
          title: Published Revision
      type: object
      required:
        - items
        - head_revision
      title: WorkflowVersionList
      description: >-
        I6: versions endpoint payload — every revision + head/published
        pointers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkflowVersionEntry:
      properties:
        revision:
          type: integer
          title: Revision
        author:
          anyOf:
            - type: string
            - type: 'null'
          title: Author
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        name:
          type: string
          title: Name
          default: ''
        step_count:
          type: integer
          title: Step Count
          default: 0
        publications:
          items:
            $ref: '#/components/schemas/WorkflowPublication'
          type: array
          title: Publications
      type: object
      required:
        - revision
      title: WorkflowVersionEntry
      description: One immutable revision snapshot in the versions list (I6).
    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
    WorkflowPublication:
      properties:
        published_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Published At
        published_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Published By
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
      type: object
      title: WorkflowPublication
      description: >-
        One publish of a revision: when, by whom (an email), and the review
        note.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        The access_token returned by POST /apikeys/token for an API key's
        secret.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.