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

# Headline knowledge-gap KPIs for the org over a date window



## OpenAPI

````yaml /api-reference/openapi.json get /v1/knowledge-gaps/summary
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-gaps/summary:
    get:
      tags:
        - knowledge-gap-analytics
      summary: Headline knowledge-gap KPIs for the org over a date window
      operationId: getKnowledgeGapSummary
      parameters:
        - name: agent_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Agent Id
        - name: start_date
          in: query
          required: true
          schema:
            type: string
            format: date
            title: Start Date
        - name: end_date
          in: query
          required: true
          schema:
            type: string
            format: date
            title: End Date
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SummaryResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    SummaryResponse:
      properties:
        total_sessions_analyzed:
          type: integer
          title: Total Sessions Analyzed
        knowledge_gap_rate:
          type: number
          title: Knowledge Gap Rate
        total_gap_events:
          type: integer
          title: Total Gap Events
        active_gap_clusters:
          type: integer
          title: Active Gap Clusters
        critical_gap_clusters:
          type: integer
          title: Critical Gap Clusters
        top_gap_types:
          items:
            $ref: '#/components/schemas/BucketCount'
          type: array
          title: Top Gap Types
        top_product_areas:
          items:
            $ref: '#/components/schemas/BucketCount'
          type: array
          title: Top Product Areas
        average_impact_score:
          type: number
          title: Average Impact Score
        fixed_clusters_count:
          type: integer
          title: Fixed Clusters Count
        reopened_clusters_count:
          type: integer
          title: Reopened Clusters Count
      type: object
      required:
        - total_sessions_analyzed
        - knowledge_gap_rate
        - total_gap_events
        - active_gap_clusters
        - critical_gap_clusters
        - top_gap_types
        - top_product_areas
        - average_impact_score
        - fixed_clusters_count
        - reopened_clusters_count
      title: SummaryResponse
    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
    BucketCount:
      properties:
        bucket:
          type: string
          title: Bucket
        count:
          type: integer
          title: Count
      type: object
      required:
        - bucket
        - count
      title: BucketCount
      description: |-
        Generic (bucket-name, count) tuple — used for top_gap_types,
        top_product_areas in the summary response.
    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

````