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

# Get metrics

> Lightweight observability endpoint for dashboards. Returns SSE throughput and average agent latency per utterance.



## OpenAPI

````yaml api-reference/openapi.json get /metrics
openapi: 3.1.0
info:
  title: Illocution Insights API
  description: >-
    Developer-facing guide for the conversation-intelligence platform that
    powers docs.illocution.ai. The FastAPI service (version 0.3.0) exposes REST
    and Server‑Sent Events (SSE) endpoints for uploading media, driving live
    sessions, and retrieving higher-level insights.
  version: 0.3.0
servers:
  - url: https://api.illocution.ai
    description: Production API server
security:
  - apiKeyAuth: []
paths:
  /metrics:
    get:
      tags:
        - Observability
      summary: Get metrics
      description: >-
        Lightweight observability endpoint for dashboards. Returns SSE
        throughput and average agent latency per utterance.
      operationId: getMetrics
      responses:
        '200':
          description: Metrics data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricsResponse'
      security: []
components:
  schemas:
    MetricsResponse:
      type: object
      properties:
        events:
          type: object
          description: Event counts by type
          additionalProperties:
            type: integer
          example:
            status: 45
            final_transcript: 12
            emotion: 12
        agent_latency_ms:
          type: object
          description: Average agent latency per utterance
          additionalProperties:
            type: number
            format: float
          example:
            utterance: 215.34
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Can also be passed as query parameter:
        api_key=<client key>

````