4e064cf81dae

latestOpenAPI 3.1.02026-08-131831,331960.0 KB
caches

Bulk delete cached responses

Delete cached responses using exactly one selector: cache_keys, ids, or all: true. Up to 1,000 keys or IDs can be deleted per request. ids uses internal integer IDs and is JWT-only; API-key clients should use cache_keys or all. Rate limit: 60 requests per minute per organization for API-key calls (shared across API keys) and per user for JWT calls.

delete/api/caches/bulk/

Headers

Authorizationstring required

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, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.

Request body

cache_keysstring[]

Cache keys to delete. Supported for API key and JWT authentication.

idsinteger[]

Internal numeric cache entry IDs to delete. JWT only.

allboolean

Set to true to delete all cached responses for the current organization. The server rejects false.

Response

Cached responses were deleted synchronously.

success_countinteger required

Number of items successfully processed.

error_countinteger required

Number of items that failed.

deleted_countinteger required

Number of resources matched and processed for deletion.

messagestring required

Human-readable deletion result.