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

# Code File



## OpenAPI

````yaml /openapi.json get /api/workspaces/{id}/code/file
openapi: 3.1.0
info:
  title: Konduktor
  version: 0.1.0
servers:
  - url: http://localhost:8080
    description: Local instance (default)
security: []
paths:
  /api/workspaces/{id}/code/file:
    get:
      tags:
        - code
      summary: Code File
      operationId: code_file_api_workspaces__id__code_file_get
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            title: Id
        - name: path
          in: query
          required: true
          schema:
            type: string
            title: Path
            description: Relative file path within the repo
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileContent'
        '400':
          description: Invalid path
        '404':
          description: File not found
        '422':
          description: Validation Error or file too large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    FileContent:
      properties:
        path:
          type: string
          title: Path
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
        size:
          type: integer
          title: Size
        lines:
          anyOf:
            - type: integer
            - type: 'null'
          title: Lines
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        binary:
          type: boolean
          title: Binary
          default: false
      type: object
      required:
        - path
        - size
      title: FileContent
    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:
    HTTPBearer:
      type: http
      scheme: bearer

````