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

# List chunks for a specific document

> Return all chunks for a document, ordered by position.

Returns 404 if the parent document does not exist.
Data comes from the ``knowledge_chunks`` PostgreSQL table.



## OpenAPI

````yaml /api-reference/knowledge-api.json get /v1/knowledge/documents/{doc_id}/chunks
openapi: 3.1.0
info:
  title: Strattum Knowledge API
  description: >-
    REST API that serves semantic document search — embeddings via the
    configured LLM provider, indexed in Qdrant, with metadata stored in
    PostgreSQL. (PRD-004, Workstream 1.4)
  version: 1.0.0
servers: []
security: []
paths:
  /v1/knowledge/documents/{doc_id}/chunks:
    get:
      tags:
        - knowledge
      summary: List chunks for a specific document
      description: |-
        Return all chunks for a document, ordered by position.

        Returns 404 if the parent document does not exist.
        Data comes from the ``knowledge_chunks`` PostgreSQL table.
      operationId: list_document_chunks_v1_knowledge_documents__doc_id__chunks_get
      parameters:
        - name: doc_id
          in: path
          required: true
          schema:
            type: string
            title: Doc Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChunkListResponse'
        '404':
          description: Document not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '503':
          description: PostgreSQL is unavailable
components:
  schemas:
    ChunkListResponse:
      properties:
        doc_id:
          type: string
          title: Doc Id
        chunks:
          items:
            $ref: '#/components/schemas/ChunkResponse'
          type: array
          title: Chunks
        count:
          type: integer
          title: Count
      type: object
      required:
        - doc_id
        - chunks
        - count
      title: ChunkListResponse
      description: Response for GET /v1/knowledge/documents/{doc_id}/chunks.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ChunkResponse:
      properties:
        chunk_id:
          type: string
          title: Chunk Id
        doc_id:
          type: string
          title: Doc Id
        position:
          type: integer
          title: Position
        content:
          type: string
          title: Content
        char_count:
          type: integer
          title: Char Count
        qdrant_point_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Qdrant Point Id
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
      type: object
      required:
        - chunk_id
        - doc_id
        - position
        - content
        - char_count
      title: ChunkResponse
      description: A single chunk record from knowledge_chunks.
    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

````