List cache hit metrics
Returns semantic cache hit metrics (count, tokens, savings, hit %) as a time series.
Authentication
AuthorizationBearer
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.
Query parameters
summary_type
Preset time range. Use this or explicit start_time / end_time.
date
Base date used with summary_type presets.
start_time
Optional explicit ISO start time.
end_time
Optional explicit ISO end time.
time_tick
Bucket granularity for time-series responses.
Allowed values:
timezone_offset
Timezone offset, in hours, used when resolving preset ranges.
Response
Successful response.
date_group
cache_hit_count
Number of requests served from cache.
cache_hit_tokens
Tokens returned from cache.
cache_hit_cost_savings
Estimated cost saved.
cache_hit_percentage
Cache hit rate (0-100).