List cached responses
Changed onOnly entries that can still be served are listed: an entry whose expiry_date is in the past or null is not returned. API-key responses expose public cache keys; dashboard JWT responses may include internal numeric IDs.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/caches/
- Auth
- HTTP bearer
- or HTTP bearer
Query parameters
Page number.
Number of results to return per page. Maximum 1000.
Request body
Example request
{
"filters": {
"cache_key_by_org_uuid": {
"operator": "",
"value": [
"cached_response_550e8400"
]
}
}
}Response
Filtered cached responses plus aggregate cache savings.
Example response
{
"summary": {
"total_cost": 12.5,
"total_hit_count": 1042,
"total_tokens": 250000,
"total_time": 3600.5
},
"data": {
"count": 1,
"next": null,
"previous": null,
"current_filters": {},
"results": [
{
"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.",
"hit_count": 42,
"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 property
/became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the
/response's property format changed fromdoubleto no format for status - breaking
the
/response's property format changed fromdoubleto no format for status - info
api operation id
caches_filterCachedResponsesremoved and replaced withfilterCachedResponses - info
the endpoint scheme security
DashboardJwtwas added to the API - info
api tag
Cachesadded - info
api tag
cachesremoved
- breaking
- info
added the non-success response with the status
- info
removed the non-success response with the status
- info