v3

latestOpenAPI 3.1.02026-07-311,4541,5202.3 MB
caches

Retrieve Cached Response

GET/PATCH/DELETE /api/caches/<cache_key>/ — Retrieve, update, delete by cache_key. GET/PATCH/DELETE /api/cache/<id>/ — Legacy alias, lookup by integer PK (JWT only). GET/PATCH/DELETE /api/cache/key/<cache_key>/ — Legacy alias, lookup by cache_key.

JWT auth uses pk lookup when an integer id is supplied; otherwise (and for API key auth) lookup is by cache_key_by_org_uuid.

get/api/cache/{id}/

Path parameters

idinteger required

Headers

Authorizationstring required

Use a dashboard JWT only for dashboard-authenticated endpoints. Respan API-key endpoints use the respanApiKey auth field instead.

Response

cache_keystring nullable
cache_key_by_org_uuidstring nullable
request_contentstring required
prompt_contentstring required
response_contentstring required
{"stackTrail":"components:schemas:PublicCachedResponseDetail:properties:full_response","oasType":"schema","type":"unknown","description":"Any type"}
hit_countinteger
response_timenumber double
timestampstring date-time
updated_atstring date-time
expiry_datestring date-time nullable