> ## Documentation Index
> Fetch the complete documentation index at: https://uiform-codex-generated-frontend-snippets.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List Edge Versions

List immutable workflow edge versions.

```python Python theme={null}
workflow_id = "wf_abc123"
print(workflow_id)
```

```typescript TypeScript theme={null}
const workflowId = "wf_abc123";
console.log(workflowId);
```

```go Go theme={null}
workflowID := "wf_abc123"
_ = workflowID
```

```java Java theme={null}
String workflowId = "wf_abc123";
System.out.println(workflowId);
```

```bash cURL theme={null}
curl "https://api.retab.com/v1/workflows/edges/versions?workflow_id=wf_abc123" \
  -H "Authorization: Bearer $RETAB_API_KEY"
```


## OpenAPI

````yaml GET /v1/workflows/edges/versions
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.retab.com
security: []
paths:
  /v1/workflows/edges/versions:
    get:
      tags:
        - Workflows
        - Workflow Edges
      summary: List Edge Versions
      operationId: list_edge_versions
      parameters:
        - in: query
          name: workflow_id
          required: true
          schema:
            type: string
            title: Workflow Id
        - in: query
          name: edge_id
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by stable edge ID
            title: Edge Id
          required: false
          description: Filter by stable edge ID
        - in: query
          name: workflow_version_id
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by workflow version ID
            title: Workflow Version Id
          required: false
          description: Filter by workflow version ID
        - in: query
          name: before
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Edge version cursor before
            title: Before
          required: false
          description: Edge version cursor before
        - in: query
          name: after
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Edge version cursor after
            title: After
          required: false
          description: Edge version cursor after
        - in: query
          name: limit
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Maximum number of edge versions to return
            default: 50
            title: Limit
          required: false
          description: Maximum number of edge versions to return
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowEdgeVersionList'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    WorkflowEdgeVersionList:
      description: >-
        A page of `WorkflowEdgeVersion` resources. `data` holds the items and
        `list_metadata` carries the `before`/`after` cursors; pass `after` to
        fetch the next page.
      properties:
        data:
          items:
            $ref: '#/components/schemas/WorkflowEdgeVersion'
          type: array
          title: Data
        list_metadata:
          $ref: '#/components/schemas/ListMetadata'
      type: object
      required:
        - data
        - list_metadata
      title: WorkflowEdgeVersionList
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
          default: []
      type: object
      title: HTTPValidationError
    WorkflowEdgeVersion:
      properties:
        id:
          type: string
          title: Id
          description: Public content-addressed edge version ID
        edge_id:
          type: string
          title: Edge Id
          description: Stable logical edge ID
        workflow_id:
          type: string
          title: Workflow Id
          description: Source workflow ID
        workflow_version_id:
          type: string
          title: Workflow Version Id
          description: Workflow version this edge version belongs to
        source:
          type: string
          title: Source
          description: ID of the source block
        source_handle:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Handle
        target:
          type: string
          title: Target
          description: ID of the target block
        target_handle:
          anyOf:
            - type: string
            - type: 'null'
          title: Target Handle
        animated:
          type: boolean
          title: Animated
          default: true
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - created_at
        - edge_id
        - id
        - source
        - target
        - workflow_id
        - workflow_version_id
      title: WorkflowEdgeVersion
      description: Public edge version resource without tenant fields.
    ListMetadata:
      properties:
        before:
          anyOf:
            - type: string
            - type: 'null'
          title: Before
        after:
          anyOf:
            - type: string
            - type: 'null'
          title: After
      type: object
      required:
        - after
        - before
      title: ListMetadata
      description: Boundary resource IDs for page navigation.
    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
          default: null
        ctx:
          type: object
          title: Context
          default: {}
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````