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

# Get File

> Get a file with its parsings and embeddings metadata

Listings from `GET /orgs/{org_id}/k2/{kb_id}/files` include **folder rows** (`content_type` `application/vnd.timbal.k2-directory`). This **get file** endpoint is only for **regular uploaded files** (parsings, embeddings, etc.).

If you pass a **directory row’s `id`** from the list endpoint, the API responds with **`404` Not Found** — virtual directories do not have a full file payload here.


## OpenAPI

````yaml GET /orgs/{org_id}/k2/{kb_id}/files/{file_id}
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: alarms
    description: Metric series and threshold alarms
  - name: analytics
    description: Org and project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: channels
    description: Delivery channels alarms notify through
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/k2/{kb_id}/files/{file_id}:
    get:
      tags:
        - k2
      description: Get a file with its parsings and embeddings metadata
      operationId: get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
        - name: kb_id
          in: path
          required: true
          schema:
            type: string
        - name: file_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: File details with parsings and embeddings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetK2FileResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    GetK2FileResponse:
      allOf:
        - $ref: '#/components/schemas/K2File'
        - type: object
          required:
            - parsings
            - embeddings
          properties:
            embeddings:
              type: array
              items:
                $ref: '#/components/schemas/K2FileEmbedding'
            parsings:
              type: array
              items:
                $ref: '#/components/schemas/K2FileParsing'
    K2File:
      type: object
      required:
        - id
        - uid
        - kb_id
        - name
        - content_type
        - content_length
        - metadata
        - parse_state
        - url
        - created_at
        - updated_at
      properties:
        content_length:
          type: integer
          format: int64
        content_type:
          type: string
        created_at:
          type: string
          format: date-time
        directory:
          type:
            - string
            - 'null'
        id:
          type: integer
          format: int64
        kb_id:
          type: integer
          format: int64
        metadata: {}
        name:
          type: string
        parse_state:
          type: string
          description: >-
            Pipeline state for parsing + embedding.


            One of `pending` (pipeline in flight), `success` (parse + embed both
            completed),

            `failed` (latest attempt failed), or `skipped` (format unsupported,
            never parsed).

            Unsupported files are stored as-is; the indicator lets clients flag
            them in listings

            rather than rejecting the upload.
        signed_url:
          type:
            - string
            - 'null'
          description: >-
            CloudFront signed URL on the new CDN for private content. Omitted
            when

            signing is unavailable or the object is public.
        uid:
          type: string
        updated_at:
          type: string
          format: date-time
        url:
          type: string
          description: >-
            **Deprecated:** prefer `signed_url` when present. Kept for old
            clients.
          deprecated: true
    K2FileEmbedding:
      type: object
      required:
        - id
        - kb_file_id
        - provider
        - model
        - status
        - created_at
        - updated_at
      properties:
        chunk_count:
          type:
            - integer
            - 'null'
          format: int32
        cost_usd:
          type:
            - number
            - 'null'
          format: double
        created_at:
          type: string
          format: date-time
        error:
          type:
            - string
            - 'null'
        id:
          type: integer
          format: int64
        kb_file_id:
          type: integer
          format: int64
        model:
          type: string
        parsing_id:
          type:
            - integer
            - 'null'
          format: int64
        provider:
          type: string
        status:
          type: string
        token_count:
          type:
            - integer
            - 'null'
          format: int32
        updated_at:
          type: string
          format: date-time
    K2FileParsing:
      type: object
      required:
        - id
        - kb_file_id
        - provider
        - status
        - created_at
        - updated_at
      properties:
        chunk_count:
          type:
            - integer
            - 'null'
          format: int32
        cost_usd:
          type:
            - number
            - 'null'
          format: double
        created_at:
          type: string
          format: date-time
        error:
          type:
            - string
            - 'null'
        id:
          type: integer
          format: int64
        kb_file_id:
          type: integer
          format: int64
        num_pages:
          type:
            - integer
            - 'null'
          format: int32
        provider:
          type: string
        provider_job_id:
          type:
            - string
            - 'null'
        s3_bucket:
          type:
            - string
            - 'null'
        s3_key:
          type:
            - string
            - 'null'
        status:
          type: string
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````