Get import staging cleanup status
GET
/api/admin/system/import-stage-cleanup
const url = 'https://hitkeep.com/api/admin/system/import-stage-cleanup';const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://hitkeep.com/api/admin/system/import-stage-cleanup \ --cookie hk_token=<hk_token>Returns stale staged import file counts, byte totals, retention policy, and the latest cleanup run state.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Import staging cleanup status
Media type application/json
object
enabled
boolean
last_cleaned_bytes
integer format: int64
last_cleaned_files
integer
last_cleaned_imports
integer
last_error
string
last_failed_at
string format: date-time
last_marked_failed
integer
last_run
string format: date-time
recent_failures
integer
retention_days
integer
stale_bytes
integer format: int64
stale_files
integer
stale_imports
integer
Example generated
{ "enabled": true, "last_cleaned_bytes": 1, "last_cleaned_files": 1, "last_cleaned_imports": 1, "last_error": "example", "last_failed_at": "2026-04-15T12:00:00Z", "last_marked_failed": 1, "last_run": "2026-04-15T12:00:00Z", "recent_failures": 1, "retention_days": 1, "stale_bytes": 1, "stale_files": 1, "stale_imports": 1}Store not available
Media type application/json
object
message
string
Example generated
{ "message": "example"}