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

# Current-state KB inventory shape



## OpenAPI

````yaml /api-reference/openapi.json get /v1/analytics/knowledge/inventory
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/analytics/knowledge/inventory:
    get:
      tags:
        - analytics
      summary: Current-state KB inventory shape
      operationId: getKnowledgeInventory
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InventoryEnvelope'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - APIKeyHeader: []
components:
  schemas:
    InventoryEnvelope:
      properties:
        summary:
          $ref: '#/components/schemas/KbInventoryRow'
        by_source_type:
          items:
            $ref: '#/components/schemas/InventoryBySourceTypeRow'
          type: array
          title: By Source Type
        by_hash_method:
          items:
            $ref: '#/components/schemas/InventoryByHashMethodRow'
          type: array
          title: By Hash Method
        growth:
          $ref: '#/components/schemas/InventoryGrowthRow'
      type: object
      required:
        - summary
        - by_source_type
        - by_hash_method
        - growth
      title: InventoryEnvelope
    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.
    KbInventoryRow:
      properties:
        total_documents:
          type: integer
          title: Total Documents
        total_chunks:
          type: integer
          title: Total Chunks
        total_tokens:
          type: integer
          title: Total Tokens
        normalized_pct:
          type: number
          title: Normalized Pct
        documents_failed_now:
          type: integer
          title: Documents Failed Now
        documents_processing_now:
          type: integer
          title: Documents Processing Now
        knowledge_bases_count:
          type: integer
          title: Knowledge Bases Count
      type: object
      required:
        - total_documents
        - total_chunks
        - total_tokens
        - normalized_pct
        - documents_failed_now
        - documents_processing_now
        - knowledge_bases_count
      title: KbInventoryRow
    InventoryBySourceTypeRow:
      properties:
        source_type:
          type: string
          title: Source Type
        documents:
          type: integer
          title: Documents
        chunks:
          type: integer
          title: Chunks
        tokens:
          type: integer
          title: Tokens
      type: object
      required:
        - source_type
        - documents
        - chunks
        - tokens
      title: InventoryBySourceTypeRow
    InventoryByHashMethodRow:
      properties:
        hash_method:
          type: string
          title: Hash Method
        documents:
          type: integer
          title: Documents
        chunks:
          type: integer
          title: Chunks
        tokens:
          type: integer
          title: Tokens
      type: object
      required:
        - hash_method
        - documents
        - chunks
        - tokens
      title: InventoryByHashMethodRow
    InventoryGrowthRow:
      properties:
        created_24h:
          type: integer
          title: Created 24H
        created_7d:
          type: integer
          title: Created 7D
        created_30d:
          type: integer
          title: Created 30D
        failed_7d:
          type: integer
          title: Failed 7D
        cleaned_up_7d:
          type: integer
          title: Cleaned Up 7D
      type: object
      required:
        - created_24h
        - created_7d
        - created_30d
        - failed_7d
        - cleaned_up_7d
      title: InventoryGrowthRow
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````