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

# Per-session analysis result, signals, gap events, and linked clusters



## OpenAPI

````yaml /api-reference/openapi.json get /v1/knowledge-gaps/sessions/{session_id}/analysis
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/sessions/{session_id}/analysis:
    get:
      tags:
        - knowledge-gap-analytics
      summary: Per-session analysis result, signals, gap events, and linked clusters
      operationId: getKnowledgeGapSessionAnalysis
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionAnalysisDetailResponse'
        '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:
    SessionAnalysisDetailResponse:
      properties:
        session_id:
          type: string
          format: uuid
          title: Session Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        agent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Id
        knowledge_gap_analysis_outcome:
          anyOf:
            - type: string
            - type: 'null'
          title: Knowledge Gap Analysis Outcome
        job:
          anyOf:
            - $ref: '#/components/schemas/AnalysisJobSummary'
            - type: 'null'
        result:
          anyOf:
            - $ref: '#/components/schemas/AnalysisResultSummary'
            - type: 'null'
        gap_events:
          items:
            $ref: '#/components/schemas/GapEventSummary'
          type: array
          title: Gap Events
        linked_clusters:
          items:
            $ref: '#/components/schemas/ClusterStub'
          type: array
          title: Linked Clusters
      type: object
      required:
        - session_id
        - organization_id
      title: SessionAnalysisDetailResponse
    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
    AnalysisJobSummary:
      properties:
        job_id:
          type: string
          format: uuid
          title: Job Id
        status:
          type: string
          title: Status
        attempts:
          type: integer
          title: Attempts
        current_stage:
          anyOf:
            - type: string
            - type: 'null'
          title: Current Stage
        skip_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Skip Reason
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        failed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Failed At
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - job_id
        - status
        - attempts
        - created_at
      title: AnalysisJobSummary
    AnalysisResultSummary:
      properties:
        deep_analysis_required:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Deep Analysis Required
        decision_source:
          anyOf:
            - type: string
            - type: 'null'
          title: Decision Source
        decision_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Decision Reason
        knowledge_gap_detected:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Knowledge Gap Detected
        analysis_confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Analysis Confidence
        candidate_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Candidate Count
        total_gap_events:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Gap Events
        deep_analysis_reasons:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Deep Analysis Reasons
        unresolved_candidates:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Unresolved Candidates
        classified_gaps:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Classified Gaps
        retrieval_validation_results:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Retrieval Validation Results
      type: object
      title: AnalysisResultSummary
    GapEventSummary:
      properties:
        gap_event_id:
          type: string
          format: uuid
          title: Gap Event Id
        candidate_id:
          type: string
          title: Candidate Id
        canonical_question:
          type: string
          title: Canonical Question
        effective_gap_type:
          type: string
          title: Effective Gap Type
        original_gap_type:
          type: string
          title: Original Gap Type
        corrected_gap_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Corrected Gap Type
        severity:
          type: string
          title: Severity
        completion_impact:
          anyOf:
            - type: string
            - type: 'null'
          title: Completion Impact
        confidence:
          type: number
          title: Confidence
        validation_confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Validation Confidence
        product_area:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Area
        cluster_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Cluster Id
        claims:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Claims
        retrieved_doc_ids:
          items:
            type: string
          type: array
          title: Retrieved Doc Ids
        cited_doc_ids:
          items:
            type: string
          type: array
          title: Cited Doc Ids
        implicated_doc_ids:
          items:
            type: string
          type: array
          title: Implicated Doc Ids
      type: object
      required:
        - gap_event_id
        - candidate_id
        - canonical_question
        - effective_gap_type
        - original_gap_type
        - severity
        - confidence
      title: GapEventSummary
    ClusterStub:
      properties:
        cluster_id:
          type: string
          format: uuid
          title: Cluster Id
        label:
          type: string
          title: Label
        status:
          type: string
          title: Status
        priority:
          anyOf:
            - type: string
            - type: 'null'
          title: Priority
      type: object
      required:
        - cluster_id
        - label
        - status
      title: ClusterStub
    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

````