Get system health
GET
/api/admin/system/health
const url = 'https://hitkeep.com/api/admin/system/health';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/health \ --cookie hk_token=<hk_token>Returns instance health, database status, worker status, and cluster leader state.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”System health
Media type application/json
object
database
string
is_leader
boolean
status
string
workers
string
Example generated
{ "database": "example", "is_leader": true, "status": "example", "workers": "example"}