---
title: "Retrieve a cached response"
method: GET
path: "/api/cache/{id}/"
tags: ["caches"]
---

# Retrieve a cached response

`GET /api/cache/{id}/`

Retrieve a single cached response by numeric cache entry ID. The current backend route is `/api/cache/{id}/`; there is no public lookup route by `cache_key`. This cache management endpoint currently requires dashboard JWT authentication.

## Path parameters

- `id` integer, required

## Headers

- `Authorization` string, required

## Response `200`

Cached response details.

- CachesRetrieveCachedResponseResponse200
  - `id` integer, required — Numeric cache entry ID.
  - `cache_key` string, required — Unique cache key for this cached response.
  - `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` ApiCacheIdGetResponsesContentApplicationJsonSchemaPromptMessagesItems[] — Original prompt message array stored with the cache entry.
  - `full_response` ApiCacheIdGetResponsesContentApplicationJsonSchemaFullResponse — Full cached provider response object.
  - `hit_count` integer, required — Live cache hit count enriched from ClickHouse.
  - `response_time` number, double — 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. `null` means no expiry date is set.

## Other responses

- `401` — Unauthorized - Missing or invalid authentication
- `404` — Not Found

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/77d94e49bc7a/schema)
