---
title: "Get a cached response"
method: GET
path: "/api/caches/{cache_key}/"
tags: ["Caches"]
---

# Get a cached response

`GET /api/caches/{cache_key}/`

## Request

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

Retrieve a cached response by its organization-scoped cache key. API-key responses omit internal numeric IDs.

## Path parameters

- `cache_key` string, required

## Response `200`

Cached response details.

- object
  - `id` integer: Internal numeric ID. Present only for dashboard-JWT responses.
  - `cache_key` string, required: Organization-scoped public cache key.
  - `prompt_content` string, required: Prompt text extracted from the cached request.
  - `response_content` string, required: Response text extracted from the cached response.
  - `request_content` string: Stored request text preview. The current backend serializer truncates this field to roughly the first 100 characters.
  - `prompt_messages` object[]: Original prompt message array stored with the cache entry.
  - `full_response` object: Full cached provider response object.
  - `hit_count` integer, required: Live cache hit count enriched from ClickHouse.
  - `response_time` number: Stored response time for the cached entry, in seconds.
  - `timestamp` string, date-time, required: When the cache entry was created.
  - `updated_at` string, date-time, required: When the cache entry was last updated.
  - `expiry_date` string, date-time, nullable: When the cache entry expires. Always in the future; an entry whose expiry is past or `null` returns 404.

## Other responses

- `403`: The API key is missing, invalid or expired.
- `404`: Cached response not found.

## Changes

- **2026-10-21** `c30bcb383ee8`: 2 breaking, 4 info
  - the response property `expiry_date` became nullable for the status `200`
  - the `response_time` response's property format changed from `double` to no format for status `200`
  - api operation id `caches_api_caches_retrieve` removed and replaced with `api_caches_retrieve`
  - the endpoint scheme security `DashboardJwt` was added to the API
  - …2 more
- **2026-10-02** `b830b79cfd52`: 1 warning, 3 info
  - removed the optional property `error` from the response with the `404` status
  - added the non-success response with the status `403`
  - removed the non-success response with the status `401`
  - added the required property `detail` to the response with the `404` status
- **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 `api-caches-retrieve` removed and replaced with `caches_api_caches_retrieve`
- …earlier changes not shown

[Operation history](https://skmtc.dev/keywordsai/apis/respan-api/changes/api/caches/:cache_key/get.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)
