Caches
Get a cached response
Changed onRetrieve a cached response by its organization-scoped cache key. API-key responses omit internal numeric IDs.
get/api/caches/{cache_key}/
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/caches/{cache_key}/
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
cache_keystring required
Organization-scoped cache key returned by the cache list endpoint.
Response
Cached response details.
Example response
{
"id": 123,
"cache_key": "cached_response_550e8400-e29b-41d4_abc123def456",
"prompt_content": "What is the capital of France?",
"response_content": "The capital of France is Paris.",
"request_content": "What is the capital of France?",
"prompt_messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
],
"full_response": {
"choices": [
{
"message": {
"role": "assistant",
"content": "The capital of France is Paris."
}
}
]
},
"hit_count": 42,
"response_time": 0.5,
"timestamp": "2026-04-10T12:00:00Z",
"updated_at": "2026-04-10T12:00:00Z",
"expiry_date": "2026-05-10T12:00:00Z"
}Changes
- breaking
the response property
became nullable for the status - breaking
the
response's property format changed fromdoubleto no format for status - info
api operation id
caches_api_caches_retrieveremoved and replaced withapi_caches_retrieve - info
the endpoint scheme security
DashboardJwtwas added to the API - info
api tag
Cachesadded - info
api tag
cachesremoved
- breaking
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the required property
to the response with the status
- warning