Get fleet metrics
GET
/admin/fleet/metrics
const url = 'https://example.com/v1/admin/fleet/metrics';const options = {method: 'GET', headers: {Authorization: 'Bearer <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://example.com/v1/admin/fleet/metrics \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Fleet-wide totals and health
Media typeapplication/json
object
deviceCount
integer
devicesOnline
integer
devicesOffline
integer
agentCount
integer
mcpCount
integer
Example generated
{ "deviceCount": 1, "devicesOnline": 1, "devicesOffline": 1, "agentCount": 1, "mcpCount": 1}