For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • GETList cached responses
      • POSTList cached responses with filters
      • DELBulk delete cached responses
      • GETRetrieve a cached response
      • GETGet cache summary
      • POSTGet filtered cache summary
      • DELDelete all cached responses
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceCaches

Bulk delete cached responses

DELETE
https://api.respan.ai/api/caches/
DELETE
/api/caches/
$curl -X DELETE https://api.respan.ai/api/caches/ \
> -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
> -H "Content-Type: application/json" \
> -d '{
> "ids": [
> 123,
> 124,
> 125
> ]
>}'
1{
2 "message": "Successfully deleted 3 cached responses",
3 "deleted_count": 3
4}

Delete cached responses in bulk by numeric cache entry ID. This cache management endpoint currently requires dashboard JWT authentication. To remove every cached response for the current organization, use DELETE /api/caches/delete-all/.

Was this page helpful?
Previous

Retrieve a cached response

Next
Built with

Headers

AuthorizationstringRequired

Bearer JWT token for dashboard-authenticated cache management endpoints.

Request

This endpoint expects an object.
idslist of integersRequired
Numeric cache entry IDs to delete.

Response

Bulk delete result.
messagestring

Human-readable result message.

deleted_countinteger
Number of cache entries deleted.

Errors

400
Bad Request Error
401
Unauthorized Error