---
title: "Get cache summary"
method: POST
path: "/api/caches/summary/"
tags: ["Caches"]
---

# Get cache summary

`POST /api/caches/summary/`

## Request

- Base URL: `https://api.respan.ai`
- URL: `https://api.respan.ai/api/caches/summary/`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Returns the number of unexpired cached responses matching the filters.

## Request body

- object
  - `filters` object: Each key is a field to filter on, and each value is a condition: `{"<field>": {"operator": "<operator>", "value": [...]}}`. A cached response must match every condition. To set two conditions on one field, such as a range, pass a list of conditions. **Operators:** `""` (equals, the default), `not`, `in`, `not_in`, `lt`, `lte`, `gt`, `gte`, `contains`, `not_contains`, `icontains` (ignores case), `startswith`, `not_startswith`, `endswith`, `not_endswith`, `empty`, `not_empty`. Put values in a list: `""` and `in` match any of the listed values, and `not` and `not_in` match none of them. Other operators take one value; for `empty` and `not_empty`, send `[""]`. **Fields:** `cache_key_by_org_uuid` (the `cache_key` value the API returns), `timestamp` (when the response was cached), `updated_at`, and `expiry_date`. Send dates as ISO 8601 strings. Unsupported fields return a 400 error. **Example:** ```json { "timestamp": {"operator": "gte", "value": ["2026-09-01T00:00:00Z"]} } ```

## Response `200`

Filtered cache summary statistics.

- object
  - `total_count` integer, required: Total number of cached responses that match the query.

## Other responses

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

## Changes

- **2026-10-21** `c30bcb383ee8`: 4 info
  - api operation id `caches_getFilteredCachedResponsesSummary` removed and replaced with `getFilteredCachedResponsesSummary`
  - the endpoint scheme security `DashboardJwt` was added to the API
  - api tag `Caches` added
  - api tag `caches` removed
- **2026-10-02** `b830b79cfd52`: 2 info
  - added the non-success response with the status `403`
  - removed the non-success response with the status `401`
- **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-filtered-cached-responses-summary` removed and replaced with `caches_getFilteredCachedResponsesSummary`
- **2026-08-13** `4e064cf81dae`: 4 info
  - added optional request body
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the required property `total_count` to the response with the `200` status

[Operation history](https://skmtc.dev/keywordsai/apis/respan-api/changes/api/caches/summary/post.md)

---

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