> ## 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-agent retrieval breakdown: volume, hit-rate, and avg latency



## OpenAPI

````yaml /api-reference/openapi.json get /v1/analytics/knowledge/documents/retrieval-by-agent
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/documents/retrieval-by-agent:
    get:
      tags:
        - analytics
      summary: 'Per-agent retrieval breakdown: volume, hit-rate, and avg latency'
      operationId: getDocumentRetrievalByAgent
      parameters:
        - name: caller
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                pattern: ^(api|aop_tool|aop_action_node)$
              - type: 'null'
            title: Caller
        - 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:
                type: array
                items:
                  $ref: '#/components/schemas/DocumentRetrievalByAgentRow'
                title: Response Getdocumentretrievalbyagent
        '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:
    DocumentRetrievalByAgentRow:
      properties:
        agent_id:
          type: string
          title: Agent Id
        total:
          type: integer
          title: Total
        hits:
          type: integer
          title: Hits
        misses:
          type: integer
          title: Misses
        hit_rate_pct:
          type: number
          title: Hit Rate Pct
        avg_duration_ms:
          type: number
          title: Avg Duration Ms
      type: object
      required:
        - agent_id
        - total
        - hits
        - misses
        - hit_rate_pct
        - avg_duration_ms
      title: DocumentRetrievalByAgentRow
    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
    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

````