🔨 In Development — This section is still being developed and may change.
POST/v1/cache/clear-all
Clear all application caches including Redis and in-memory caches.
This endpoint clears all Redis caches (limits, models, sessions), in-memory rule caches, and model caches. Use when you need to force a complete cache refresh across the system.
Admin only - Requires global admin privileges.
Returns a response with success status and details of caches cleared including Redis key count, rule cache status, and model cache status.
cURL
- Bash
- Python
- JavaScript
curl -X POST https://api.aitronos.com/v1/cache/clear-all \
-H "X-API-Key: $FREDDY_API_KEY"{
"success": true,
"message": "All caches cleared successfully",
"caches_cleared": {
"redis_keys": 1247,
"rule_cache": true,
"model_cache": true,
"models_list_cache": true
}
}{
"success": false,
"error": {
"code": "INSUFFICIENT_PERMISSIONS",
"message": "Admin privileges required",
"status": 403
}
}