curl -X POST '{{baseUrlAdmin}}/api/internal/cache/clear' \
-H 'Authorization: Bearer <your-admin-token>' \
-H 'Content-Type: application/json' \
-d '{
"cacheNames": [
"flowx:core:cache"
]
}'
const response = await fetch('{{baseUrlAdmin}}/api/internal/cache/clear', {
method: 'POST',
headers: {
'Authorization': 'Bearer <your-admin-token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
cacheNames: [
'flowx:core:cache'
]
})
});
const result = await response.json();
import requests
url = "{{baseUrlAdmin}}/api/internal/cache/clear"
headers = {
"Authorization": "Bearer <your-admin-token>",
"Content-Type": "application/json"
}
payload = {
"cacheNames": [
"flowx:core:cache",
]
}
response = requests.post(url, headers=headers, json=payload)
result = response.json()
{
"status": "success",
"message": "Caches cleared successfully",
"clearedCaches": [
"flowx:core:cache"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"status": "error",
"message": "One or more cache names are invalid",
"invalidCaches": [
"invalid:cache:name"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"status": "error",
"message": "Authentication required. Please provide a valid admin token.",
"timestamp": "2024-01-15T10:30:00Z"
}
{
"status": "error",
"message": "Insufficient permissions. Admin role required for cache operations.",
"timestamp": "2024-01-15T10:30:00Z"
}
Clear cache
Clear specific application caches to force refresh of cached data and resolve performance issues
POST
{baseUrlAdmin}
/
api
/
internal
/
cache
/
clear
curl -X POST '{{baseUrlAdmin}}/api/internal/cache/clear' \
-H 'Authorization: Bearer <your-admin-token>' \
-H 'Content-Type: application/json' \
-d '{
"cacheNames": [
"flowx:core:cache"
]
}'
const response = await fetch('{{baseUrlAdmin}}/api/internal/cache/clear', {
method: 'POST',
headers: {
'Authorization': 'Bearer <your-admin-token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
cacheNames: [
'flowx:core:cache'
]
})
});
const result = await response.json();
import requests
url = "{{baseUrlAdmin}}/api/internal/cache/clear"
headers = {
"Authorization": "Bearer <your-admin-token>",
"Content-Type": "application/json"
}
payload = {
"cacheNames": [
"flowx:core:cache",
]
}
response = requests.post(url, headers=headers, json=payload)
result = response.json()
{
"status": "success",
"message": "Caches cleared successfully",
"clearedCaches": [
"flowx:core:cache"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"status": "error",
"message": "One or more cache names are invalid",
"invalidCaches": [
"invalid:cache:name"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"status": "error",
"message": "Authentication required. Please provide a valid admin token.",
"timestamp": "2024-01-15T10:30:00Z"
}
{
"status": "error",
"message": "Insufficient permissions. Admin role required for cache operations.",
"timestamp": "2024-01-15T10:30:00Z"
}
Reference under review. The path of this endpoint (
/api/internal/...) indicates it is an internal admin operation, not part of the public integration API. For supported integration patterns, see Consuming FlowX from external apps.This operation can temporarily impact application performance as the system rebuilds cleared caches. Use during maintenance windows when possible.
This operation requires admin-level authentication and should only be performed by authorized system administrators.
The base URL of your FlowX Admin application. This is the admin interface endpoint where administrative operations are performed.Example:
https://admin.your-domain.comBearer token for admin authentication. Must be a valid admin user token with cache management permissions.Format:
Bearer <your-admin-token>Must be set to
application/json for proper request processing.Array of cache names to be cleared. Each cache name should be a valid string identifier for an existing cache in the system.
flowx:core:cache- Core application cache
{
"cacheNames": [
"flowx:core:cache"
]
}
curl -X POST '{{baseUrlAdmin}}/api/internal/cache/clear' \
-H 'Authorization: Bearer <your-admin-token>' \
-H 'Content-Type: application/json' \
-d '{
"cacheNames": [
"flowx:core:cache"
]
}'
const response = await fetch('{{baseUrlAdmin}}/api/internal/cache/clear', {
method: 'POST',
headers: {
'Authorization': 'Bearer <your-admin-token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
cacheNames: [
'flowx:core:cache'
]
})
});
const result = await response.json();
import requests
url = "{{baseUrlAdmin}}/api/internal/cache/clear"
headers = {
"Authorization": "Bearer <your-admin-token>",
"Content-Type": "application/json"
}
payload = {
"cacheNames": [
"flowx:core:cache",
]
}
response = requests.post(url, headers=headers, json=payload)
result = response.json()
Response
Indicates the success or failure of the cache clearing operation.
success- Cache clearing completed successfullyerror- Cache clearing failed
Optional descriptive message providing additional details about the operation result.
Array of cache names that were successfully cleared. Only present in successful responses.
ISO 8601 timestamp of when the operation was completed.
{
"status": "success",
"message": "Caches cleared successfully",
"clearedCaches": [
"flowx:core:cache"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"status": "error",
"message": "One or more cache names are invalid",
"invalidCaches": [
"invalid:cache:name"
],
"timestamp": "2024-01-15T10:30:00Z"
}
{
"status": "error",
"message": "Authentication required. Please provide a valid admin token.",
"timestamp": "2024-01-15T10:30:00Z"
}
{
"status": "error",
"message": "Insufficient permissions. Admin role required for cache operations.",
"timestamp": "2024-01-15T10:30:00Z"
}
Last modified on May 12, 2026
Was this page helpful?
⌘I

