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

# Analytics daily trend

> One row per UTC day, gap-filled with zeroes. Same parameters as the overview. Scope `analytics:read`.



## OpenAPI

````yaml /api-reference/openapi.json get /analytics/overview/trend
openapi: 3.1.0
info:
  title: Lehar API
  version: v0
  description: >-
    Customer-facing REST API for the Lehar voice-AI platform. Platform-admin
    endpoints are intentionally excluded from this reference. Regenerate with
    `npm run sync:openapi`.
servers:
  - url: https://api.lehar.ai/ca/api/v0
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /analytics/overview/trend:
    get:
      tags:
        - Analytics
      summary: Analytics daily trend
      description: >-
        One row per UTC day, gap-filled with zeroes. Same parameters as the
        overview. Scope `analytics:read`.
      operationId: get_overview_trend_ca_api_v0_analytics_overview_trend_get
      parameters:
        - name: from
          in: query
          required: false
          schema:
            type: string
            format: date
        - name: to
          in: query
          required: false
          schema:
            type: string
            format: date
        - name: agent_id
          in: query
          required: false
          schema:
            type: string
        - name: campaign_id
          in: query
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Daily series
          content:
            application/json:
              example:
                data:
                  range:
                    from: '2026-08-01'
                    to: '2026-08-11'
                  series:
                    - day: '2026-08-01'
                      attempts: 112
                      connected: 71
                      avg_duration_s: 94.2
                      cost_credits: 70.15
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
    BearerAuth:
      type: http
      scheme: bearer

````