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

> Return a paginated list of all indexed documents with their metadata.

Results come from the ``knowledge_documents`` PostgreSQL table populated
by the Knowledge Worker.

Pass ``include_tags=true`` to receive entity tags embedded in each
document object, avoiding N+1 round-trips from the client.



## OpenAPI

````yaml /api-reference/knowledge-api.json get /v1/knowledge/documents
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:
    get:
      tags:
        - knowledge
      summary: List indexed knowledge documents
      description: |-
        Return a paginated list of all indexed documents with their metadata.

        Results come from the ``knowledge_documents`` PostgreSQL table populated
        by the Knowledge Worker.

        Pass ``include_tags=true`` to receive entity tags embedded in each
        document object, avoiding N+1 round-trips from the client.
      operationId: list_documents_v1_knowledge_documents_get
      parameters:
        - name: source
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by source ('gdrive', 'sharepoint').
            title: Source
          description: Filter by source ('gdrive', 'sharepoint').
        - name: tags
          in: query
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                type: array
              - type: 'null'
            description: Filter by tags (multi-value; documents must contain ALL).
            title: Tags
          description: Filter by tags (multi-value; documents must contain ALL).
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            description: Max number of records to return.
            default: 20
            title: Limit
          description: Max number of records to return.
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Number of records to skip.
            default: 0
            title: Offset
          description: Number of records to skip.
        - name: include_tags
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              When true, embed non-rejected entity tags from
              knowledge_document_tags in each document via a single SQL JOIN.
              Eliminates the need for N+1 tag requests from the client.
            default: false
            title: Include Tags
          description: >-
            When true, embed non-rejected entity tags from
            knowledge_document_tags in each document via a single SQL JOIN.
            Eliminates the need for N+1 tag requests from the client.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocumentListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '503':
          description: PostgreSQL is unavailable
components:
  schemas:
    DocumentListResponse:
      properties:
        documents:
          items:
            $ref: '#/components/schemas/DocumentResponse'
          type: array
          title: Documents
        count:
          type: integer
          title: Count
        limit:
          type: integer
          title: Limit
        offset:
          type: integer
          title: Offset
      type: object
      required:
        - documents
        - count
        - limit
        - offset
      title: DocumentListResponse
      description: Response for GET /v1/knowledge/documents.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DocumentResponse:
      properties:
        doc_id:
          type: string
          title: Doc Id
        source:
          type: string
          title: Source
        title:
          type: string
          title: Title
        content_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Hash
        chunk_count:
          type: integer
          title: Chunk Count
        owner:
          anyOf:
            - type: string
            - type: 'null'
          title: Owner
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
        summary_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary Model
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        indexed_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Indexed At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        entity_tags:
          anyOf:
            - items:
                $ref: '#/components/schemas/EmbeddedTagResponse'
              type: array
            - type: 'null'
          title: Entity Tags
      type: object
      required:
        - doc_id
        - source
        - title
        - chunk_count
      title: DocumentResponse
      description: A single document record from knowledge_documents.
    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
    EmbeddedTagResponse:
      properties:
        tag:
          type: string
          title: Tag
        status:
          type: string
          title: Status
        source:
          type: string
          title: Source
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
      type: object
      required:
        - tag
        - status
        - source
      title: EmbeddedTagResponse
      description: >-
        A tag embedded in a document list response (used when
        include_tags=true).

````