---
title: "Get dashboard analytics"
method: GET
path: "/dashboard/analytics"
tags: ["Dashboard"]
---

# Get dashboard analytics

`GET /dashboard/analytics`

## Request

- Base URL: `https://caspr-copilot-prod.usepeppr.ai/api`
- URL: `https://caspr-copilot-prod.usepeppr.ai/api/dashboard/analytics`
- Auth: HTTP bearer

Aggregated analytics across sessions for a date range — stat cards, classification breakdown, top knowledge gaps, recent sessions, and team-level stats (admin keys only).

## Query parameters

- `from` string, date
- `to` string, date

## Response `200`

Dashboard analytics

- DashboardAnalytics
  - `stats` object
    - `total_calls` StatCard
      - `label` string
      - `value` number
      - `formatted_value` string
      - `change` number, nullable
      - `change_label` string, nullable
    - `questions_fielded` StatCard
      - `label` string
      - `value` number
      - `formatted_value` string
      - `change` number, nullable
      - `change_label` string, nullable
    - `accuracy_rate` StatCard
      - `label` string
      - `value` number
      - `formatted_value` string
      - `change` number, nullable
      - `change_label` string, nullable
    - `knowledge_gaps_found` StatCard
      - `label` string
      - `value` number
      - `formatted_value` string
      - `change` number, nullable
      - `change_label` string, nullable
  - `classification_breakdown` object
    - `correct` integer
    - `incorrect` integer
    - `knowledge_gap` integer
    - `deferred` integer
    - `unguarded` integer
    - `total` integer
  - `top_knowledge_gaps` object[]
    - `question` string
    - `occurrences` integer
    - `category` string, nullable
  - `recent_sessions` object[]
    - `id` string, uuid
    - `title` string
    - `date` string
    - `accuracy_percent` number, nullable
    - `total_questions` integer

## Other responses

- `400`: Invalid date range
- `401`: Missing or invalid API key

---

[API](https://skmtc.dev/usepeppr/apis/caspr-api.md) - [All operations](https://skmtc.dev/usepeppr/apis/caspr-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usepeppr/apis/caspr-api/revisions/0e6a698762a4?raw)
