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

# List Chunks

> List chunks for a knowledge base file in document order.



## OpenAPI

````yaml GET /orgs/{org_id}/k2/{kb_id}/files/{file_id}/chunks
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}/chunks:
    get:
      tags:
        - k2
      description: List chunks for a knowledge base file in document order.
      operationId: list
      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
        - name: page_token
          in: query
          description: |-
            Cursor: pass `next_page_token` from the previous response to fetch
            the next page. Treat the value as opaque.
          required: false
          schema:
            type:
              - string
              - 'null'
        - name: limit
          in: query
          description: Page size. Defaults to 100; max 500.
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int64
      responses:
        '200':
          description: Chunks listed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListK2ChunksResponse'
      security:
        - bearer_auth: []
components:
  schemas:
    ListK2ChunksResponse:
      type: object
      required:
        - chunks
      properties:
        chunks:
          type: array
          items:
            $ref: '#/components/schemas/K2ChunkSummary'
        next_page_token:
          type:
            - string
            - 'null'
    K2ChunkSummary:
      type: object
      description: |-
        List-endpoint payload. Same fields as [`K2Chunk`] except `blocks`,
        which is omitted to keep list responses small. Fetch a single chunk
        by `uid` to retrieve `blocks`.
      required:
        - uid
        - kb_file_id
        - ordinal
        - content
        - embed
        - index_status
        - revision
        - source
        - created_at
        - updated_at
      properties:
        content:
          type: string
        created_at:
          type: string
          format: date-time
        embed:
          type: string
        index_error:
          type:
            - string
            - 'null'
        index_status:
          type: string
        indexed_at:
          type:
            - string
            - 'null'
          format: date-time
        kb_file_id:
          type: string
        ordinal:
          type: string
        page_end:
          type:
            - integer
            - 'null'
          format: int32
        page_start:
          type:
            - integer
            - 'null'
          format: int32
        revision:
          type: string
        source:
          type: string
        uid:
          type: string
          format: uuid
        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.

````