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

# List documents in a knowledge base



## OpenAPI

````yaml /api-reference/openapi.json get /v1/knowledge-base/knowledge-bases/{kb_id}/documents
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/knowledge-base/knowledge-bases/{kb_id}/documents:
    get:
      tags:
        - knowledge-base
      summary: List documents in a knowledge base
      operationId: listDocuments
      parameters:
        - name: kb_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Kb Id
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Cursor
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CursorPage_DocumentResponse_'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CursorPage_DocumentResponse_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/DocumentResponse'
          type: array
          title: Items
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
        - items
        - has_more
      title: CursorPage[DocumentResponse]
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DocumentResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        knowledge_base_id:
          type: string
          format: uuid
          title: Knowledge Base Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        title:
          type: string
          title: Title
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        active_version_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Active Version Id
        version_number:
          anyOf:
            - type: integer
            - type: 'null'
          title: Version Number
        state:
          anyOf:
            - type: string
            - type: 'null'
          title: State
        scan_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Scan Status
        source_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Type
        chunk_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Chunk Count
        token_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Token Count
        segment_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Segment Count
        version_count:
          type: integer
          title: Version Count
          default: 0
        download_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Download Url
        normalized_download_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Normalized Download Url
        sensitivity:
          type: string
          title: Sensitivity
          default: internal
        sensitivity_level:
          type: integer
          title: Sensitivity Level
          default: 10
        pii_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Pii Status
        safe_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Safe Title
        pii_sensitivity:
          anyOf:
            - type: string
            - type: 'null'
          title: Pii Sensitivity
        pii_coverage_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Pii Coverage Status
      type: object
      required:
        - id
        - knowledge_base_id
        - organization_id
        - title
        - created_at
        - updated_at
      title: DocumentResponse
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````