Get system storage
GET
/api/admin/system/storage
const url = 'https://hitkeep.com/api/admin/system/storage';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/storage \ --cookie hk_token=<hk_token>Returns configured data paths, shared and tenant database sizes, backup path, spam cache path, and disk capacity fields when available.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”System storage
Media type application/json
object
backup_path
string
data_path
string
disk_available_bytes
integer format: int64
disk_total_bytes
integer format: int64
shared_db_bytes
integer format: int64
shared_db_path
string
spam_cache_path
string
tenant_db_count
integer
tenant_dbs
Array<object>
object
bytes
integer format: int64
name
string
path
string
tenant_id
string format: uuid
Example generated
{ "backup_path": "example", "data_path": "example", "disk_available_bytes": 1, "disk_total_bytes": 1, "shared_db_bytes": 1, "shared_db_path": "example", "spam_cache_path": "example", "tenant_db_count": 1, "tenant_dbs": [ { "bytes": 1, "name": "example", "path": "example", "tenant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ]}