---
title: "Get cache hit summary"
method: POST
path: "/api/dashboard/cache-hit-metrics/summary/"
tags: ["Dashboard"]
---

# Get cache hit summary

`POST /api/dashboard/cache-hit-metrics/summary/`

## Request

- Base URL: `https://api.respan.ai`
- URL: `https://api.respan.ai/api/dashboard/cache-hit-metrics/summary/`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Returns cache hit metrics aggregated over the time range.

## Query parameters

- `summary_type` 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'yearly' | 'last_24h' | 'all'
- `date` string, date
- `start_time` string, date-time
- `end_time` string, date-time
- `time_tick` 'minute' | 'hour' | 'day'
- `timezone_offset` number

## Response `200`

Successful response.

- object
  - `summary` DashboardCacheHitSummary, required
    - `number_of_requests` integer
    - `total_prompt_tokens` integer
    - `total_completion_tokens` integer
    - `total_tokens` integer
    - `total_time_saved` number
    - `total_cost` number

## Other responses

- `403`: The API key is missing, invalid or expired.

## Changes

- **2026-10-21** `c30bcb383ee8`: 2 breaking, 5 info
  - the `summary/total_cost` response's property format changed from `double` to no format for status `200`
  - the `summary/total_time_saved` response's property format changed from `double` to no format for status `200`
  - api operation id `dashboard_getCacheHitMetricsSummary` removed and replaced with `getCacheHitMetricsSummary`
  - the endpoint scheme security `DashboardJwt` was added to the API
  - …3 more
- **2026-10-02** `b830b79cfd52`: 1 info
  - added the non-success response with the status `403`
- **2026-09-17** `6fa8242da8c2`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `RespanApiKey` was added to the API
- **2026-09-12** `22b868ef3f22`: 1 info
  - api operation id `get-cache-hit-metrics-summary` removed and replaced with `dashboard_getCacheHitMetricsSummary`

[Operation history](https://skmtc.dev/respan/apis/respan-api/changes/api/dashboard/cache-hit-metrics/summary/post.md)

---

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