Device Summary
GET /v2/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, browser extension 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
| Parameter | Type | Description |
|---|---|---|
client_id | string (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"]
},
"browser_extension_versions": [
{
"browser_id": "chrome",
"browser_family": "chromium",
"distinct_count": 2,
"versions": ["1.4.0", "1.3.8"]
},
{
"browser_id": "edge",
"browser_family": "chromium",
"distinct_count": 1,
"versions": ["1.4.0"]
}
],
"deployment_errors": {
"total_errors": 7,
"affected_devices": 4
}
}
DeviceSummary
| Field | Type | Description |
|---|---|---|
total_devices | number | Total number of devices registered for this client |
agent_versions | object | Agent version distribution across the fleet |
agent_versions.distinct_count | number | Number of distinct agent versions currently deployed |
agent_versions.versions | string[] | List of distinct agent version strings |
browser_extension_versions | object[] | Browser extension version distribution, one entry per browser with live versions |
browser_extension_versions[].browser_id | string | Browser identifier (for example chrome, edge, firefox) |
browser_extension_versions[].browser_family | string | Browser family grouping (for example chromium, firefox) |
browser_extension_versions[].distinct_count | number | Number of distinct extension versions for that browser |
browser_extension_versions[].versions | string[] | Distinct extension version strings for that browser |
deployment_errors | object | Deployment error summary |
deployment_errors.total_errors | number | Total number of deployment errors across all devices |
deployment_errors.affected_devices | number | Number of devices that have at least one deployment error |
Error Responses
| Status | Description |
|---|---|
| 401 | Authentication required |
| 403 | Insufficient permissions for this client |
| 404 | Client not found |
| 500 | Server error |
Related Endpoints
- List Devices -- Paginated list of all devices
- Get Device -- Full device detail by ID
- Device Activity -- Daily activity time-series for a device