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

# Get pathway versions

> Retrieves all versions of a specific pathway



## OpenAPI

````yaml get /agency/pathway/{id}/versions
openapi: 3.0.0
info:
  title: ClearTalk API
  description: The ClearTalk API Documentation
  version: '1.0'
  contact:
    name: Developer Support
    email: devsupport@cleartalk.ai
servers:
  - url: https://api.cleartalk.ai
    description: ClearTalk AI API Server
security: []
tags: []
paths:
  /agency/pathway/{id}/versions:
    get:
      tags:
        - Pathway
      summary: Get pathway versions
      description: Retrieves all versions of a specific pathway
      operationId: PathwayController_getPathwayVersions
      parameters:
        - name: id
          required: true
          in: path
          description: Pathway ID
          schema:
            example: '1'
            type: string
      responses:
        '200':
          description: Returns the pathway versions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PathwayVersionDto'
        '401':
          description: Unauthorized access
        '404':
          description: Pathway not found
      security:
        - apiKey: []
components:
  schemas:
    PathwayVersionDto:
      type: object
      properties:
        version_number:
          type: number
          example: 1
        created_at:
          type: string
          example: '2024-02-28T10:00:00.000Z'
        name:
          type: object
          example: Initial version
          nullable: true
        source_version_number:
          type: object
        is_staging:
          type: boolean
          example: true
      required:
        - version_number
        - created_at
        - name
        - source_version_number
        - is_staging
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````