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

> Lists uploaded knowledge documents with optional filtering. Requires L0 authorization.



## OpenAPI

````yaml GET /api/v1/knowledge/documents
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:
    get:
      tags:
        - Knowledge
      summary: List knowledge documents
      description: >-
        Lists uploaded knowledge documents with optional filtering. Requires L0
        authorization.
      parameters:
        - name: projectId
          in: query
          required: false
          schema:
            type: string
            minLength: 1
        - name: status
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/KnowledgeDocumentStatus'
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 1000
      responses:
        '200':
          description: Knowledge document list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeDocumentListResponse'
        '400':
          description: Validation or business error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    KnowledgeDocumentStatus:
      type: string
      enum:
        - uploaded
        - indexing
        - indexed
        - failed
    KnowledgeDocumentListResponse:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeDocumentItem'
    ErrorResponse:
      type: object
      required:
        - statusCode
        - code
        - message
      properties:
        statusCode:
          type: integer
        code:
          type: string
        message:
          type: string
    KnowledgeDocumentItem:
      type: object
      required:
        - id
        - name
        - fileType
        - source
        - projectId
        - version
        - status
        - checksum
        - filePath
        - markdownPath
        - converterCommand
        - converterMeta
        - errorMessage
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        name:
          type: string
        fileType:
          type: string
        source:
          type: string
        projectId:
          type:
            - string
            - 'null'
        version:
          type: integer
        status:
          $ref: '#/components/schemas/KnowledgeDocumentStatus'
        checksum:
          type: string
        filePath:
          type: string
        markdownPath:
          type:
            - string
            - 'null'
        converterCommand:
          type:
            - string
            - 'null'
        converterMeta:
          type:
            - object
            - 'null'
          additionalProperties: true
        errorMessage:
          type:
            - string
            - 'null'
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````