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

# List Workflow Versions

> List a workflow's versions, newest first.

```bash cURL theme={null}
curl --request GET \
  --url "https://api.roe-ai.com/v1/workflows/YOUR_WORKFLOW_ID/versions/" \
  --header "Authorization: Bearer YOUR_API_KEY"
```


## OpenAPI

````yaml GET /v1/workflows/{workflow_id}/versions/
openapi: 3.1.0
info:
  title: Roe API
  version: 1.0.0
  description: Complete API documentation for Roe platform
servers:
  - url: https://api.roe-ai.com
    description: Production API
security: []
paths:
  /v1/workflows/{workflow_id}/versions/:
    get:
      tags:
        - v1
      summary: List workflow versions
      description: List a workflow's versions, newest first.
      operationId: v1_workflows_versions_list
      parameters:
        - name: page
          required: false
          in: query
          description: A page number within the paginated result set.
          schema:
            type: integer
        - name: page_size
          required: false
          in: query
          description: Number of results to return per page.
          schema:
            type: integer
        - in: path
          name: workflow_id
          schema:
            type: string
            format: uuid
          required: true
        - name: organization_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            Organization ID. This is required for access control. It can be
            provided via query or request body depending on the endpoint.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedWorkflowVersionList'
          description: ''
      security:
        - apiKeyAuth: []
components:
  schemas:
    PaginatedWorkflowVersionList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowVersion'
    WorkflowVersion:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        workflow_id:
          type: string
          format: uuid
          readOnly: true
        version_name:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        format_version:
          type: integer
          maximum: 32767
          minimum: 0
        is_current:
          type: boolean
          readOnly: true
        read_only:
          type: boolean
          readOnly: true
          description: >-
            Saved in the old graph format: it still runs, but can only be edited
            by saving a new version.
        created_at:
          type: string
          format: date-time
      required:
        - id
        - is_current
        - read_only
        - workflow_id
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key passed as a Bearer token. This is the scheme used
        by the public SDK surface.

````

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