> ## 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.

# Get a version by UUID, version number, or alias



## OpenAPI

````yaml /api-reference/openapi.json get /v1/knowledge-base/documents/{doc_id}/versions/{ref}
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/knowledge-base/documents/{doc_id}/versions/{ref}:
    get:
      tags:
        - knowledge-base
      summary: Get a version by UUID, version number, or alias
      operationId: getDocumentVersion
      parameters:
        - name: doc_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Doc Id
        - name: ref
          in: path
          required: true
          schema:
            type: string
            title: Ref
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentVersionResponse'
        '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:
    DocumentVersionResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        document_id:
          type: string
          format: uuid
          title: Document Id
        version_number:
          type: integer
          title: Version Number
        state:
          type: string
          title: State
        scan_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Scan Status
        source_type:
          type: string
          title: Source Type
        source_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Url
        filename:
          anyOf:
            - type: string
            - type: 'null'
          title: Filename
        chunk_count:
          type: integer
          title: Chunk Count
        token_count:
          type: integer
          title: Token Count
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
        processed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Processed At
        download_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Download Url
        governance_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Governance Status
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        pii_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Pii Status
        sensitivity:
          anyOf:
            - type: string
            - type: 'null'
          title: Sensitivity
        pii_detection_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Pii Detection Count
        pii_entity_types:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Pii Entity Types
        pii_coverage_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Pii Coverage Status
        pii_scrubbed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Pii Scrubbed At
        safe_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Safe Title
      type: object
      required:
        - id
        - document_id
        - version_number
        - state
        - source_type
        - source_url
        - chunk_count
        - token_count
        - error_message
        - created_at
        - processed_at
      title: DocumentVersionResponse
    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
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````