List devices
GET/devices
Scope read:devicesRead onlyNeeds the msp module
Requires the read:devices scope (or management), and the staff member who made the key must be allowed to do this in the portal right now. Needs the msp module.
Parameters
limitPage size, 1 to 100 (default 25).
cursorOpaque continuation token: pass back the nextCursor you were given. Never construct one.
searchMatch on device name or hostname.
clientLimit to one client id (MSP-scoped keys only; a client key is always bound to its own client).
onlinetrue for online devices, false for offline.
attentiontrue for devices that need attention.
Response 200
dataRequiredThe response payload.
data[].idRequiredRecord id (use it to link or fetch the record).
data[].nameRequiredDisplay name.
data[].hostnameRequiredHostname reported by the device agent.
data[].clientRequiredThe client organization this record belongs to.
data[].client.idRequiredRecord id (use it to link or fetch the record).
data[].client.nameRequiredDisplay name.
data[].deviceTypeRequiredDevice type (workstation, server, ...), or null.
data[].osRequiredOperating system name, or null.
data[].onlineRequiredTrue when the device is online now (derived from its last check-in, never a cached flag).
data[].lastSeenRequiredWhen the device last checked in (ISO 8601), or null.
data[].assignedToRequiredName of the person it is assigned to, or null when unassigned.
data[].agentRequiredDevice agent facts, or null when no agent is installed.
data[].agent.versionRequiredInstalled agent version, or null.
data[].agent.ringRequiredUpdate ring the agent is on, or null.
data[].agent.approvalRequiredAgent approval state, or null.
data[].agent.lastSeenAtRequiredWhen the agent last checked in (ISO 8601), or null.
data[].healthRequiredHealth flags that need attention.
data[].health.patchesPendingRequiredTrue when patches are pending.
data[].health.openAlertRequiredTrue when the device has an open alert.
data[].health.criticalAlertRequiredTrue when the device has an open critical alert.
data[].health.thirdPartyBrokenRequiredTrue when a third-party tool on the device is broken.
data[].health.versionDriftRequiredTrue when the agent version is behind the fleet.
nextCursorRequiredOpaque cursor for the next page; pass it back as ?cursor=. Null on the last page.
Errors (401, 403, 404, 429)
401Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.403The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).429Rate limit exceeded; wait Retry-After seconds.