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

# List knowledge chunks

> Returns chunk records for one knowledge document. Requires L0 authorization.



## OpenAPI

````yaml GET /api/v1/knowledge/documents/{id}/chunks
openapi: 3.1.0
info:
  title: FamilyCo API
  description: Core and Knowledge endpoints from the FamilyCo Fastify server.
  version: 1.0.0
  license:
    name: MIT
servers:
  - url: http://127.0.0.1:4000
    description: Local development server
security:
  - bearerAuth: []
tags:
  - name: Core
    description: Infrastructure and runtime status endpoints.
  - name: Auth
    description: Token and API key related endpoints.
  - name: Knowledge
    description: Document upload, indexing, and retrieval endpoints.
paths:
  /api/v1/knowledge/documents/{id}/chunks:
    get:
      tags:
        - Knowledge
      summary: List chunks for a knowledge document
      description: >-
        Returns chunk records for one knowledge document. Requires L0
        authorization.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
      responses:
        '200':
          description: Chunk list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeChunkListResponse'
        '400':
          description: Validation or lookup error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    KnowledgeChunkListResponse:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeChunkItem'
    ErrorResponse:
      type: object
      required:
        - statusCode
        - code
        - message
      properties:
        statusCode:
          type: integer
        code:
          type: string
        message:
          type: string
    KnowledgeChunkItem:
      type: object
      required:
        - id
        - documentId
        - chunkIndex
        - sectionPath
        - page
        - content
        - tokenEstimate
        - metadata
        - createdAt
      properties:
        id:
          type: string
        documentId:
          type: string
        chunkIndex:
          type: integer
        sectionPath:
          type:
            - string
            - 'null'
        page:
          type:
            - integer
            - 'null'
        content:
          type: string
        tokenEstimate:
          type:
            - integer
            - 'null'
        metadata:
          type:
            - object
            - 'null'
          additionalProperties: true
        createdAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````