Skip to main content

Device Summary

GET /clients/{client_id}/devices/summary

Returns aggregate statistics about the device fleet for a client organization. Use this endpoint to power dashboard overview cards -- total device count, agent version distribution, and deployment error counts.

This is a point-in-time snapshot, not a time-series. For historical activity trends, see Device Activity.

Path Parameters

ParameterTypeDescription
client_idstring (uuid)Unique identifier for the client organization

Response

Returns a DeviceSummary object.

Example Request

curl -X GET "https://api.example.com/v2/clients/aa7cf840-9ca9-46a3-9778-9015d6580d50/devices/summary" \
-H "Authorization: Bearer YOUR_API_TOKEN"

Example Response

{
"total_devices": 142,
"agent_versions": {
"distinct_count": 3,
"versions": ["1.2.3", "1.2.2", "1.1.0"]
},
"deployment_errors": {
"total_errors": 7,
"affected_devices": 4
}
}

DeviceSummary

FieldTypeDescription
total_devicesnumberTotal number of devices registered for this client
agent_versionsobjectAgent version distribution across the fleet
agent_versions.distinct_countnumberNumber of distinct agent versions currently deployed
agent_versions.versionsstring[]List of distinct agent version strings
deployment_errorsobjectDeployment error summary
deployment_errors.total_errorsnumberTotal number of deployment errors across all devices
deployment_errors.affected_devicesnumberNumber of devices that have at least one deployment error

Error Responses

StatusDescription
401Authentication required
403Insufficient permissions for this client
404Client not found
500Server error