Devices

10 operations. Paths start at your portal’s /api/v1.

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

  • limitintegerin query

    Page size, 1 to 100 (default 25).

    Min 1. Max 100. Default 25.

  • cursorstringin query

    Opaque continuation token: pass back the nextCursor you were given. Never construct one.

  • searchstringin query

    Match on device name or hostname.

  • clientstringin query

    Limit to one client id (MSP-scoped keys only; a client key is always bound to its own client).

  • onlinebooleanin query

    true for online devices, false for offline.

  • attentionbooleanin query

    true for devices that need attention.

Response 200

  • dataobject[]Required

    The response payload.

  • data[].idstringRequired

    Record id (use it to link or fetch the record).

  • data[].namestringRequired

    Display name.

  • data[].hostnamestringRequired

    Hostname reported by the device agent.

  • data[].clientobjectRequired

    The client organization this record belongs to.

  • data[].client.idstringRequired

    Record id (use it to link or fetch the record).

  • data[].client.namestringRequired

    Display name.

  • data[].deviceTypestring or nullRequired

    Device type (workstation, server, ...), or null.

  • data[].osstring or nullRequired

    Operating system name, or null.

  • data[].onlinebooleanRequired

    True when the device is online now (derived from its last check-in, never a cached flag).

  • data[].lastSeenstring or nullRequired

    When the device last checked in (ISO 8601), or null.

  • data[].assignedTostring or nullRequired

    Name of the person it is assigned to, or null when unassigned.

  • data[].agentobject or nullRequired

    Device agent facts, or null when no agent is installed.

  • data[].agent.versionstring or nullRequired

    Installed agent version, or null.

  • data[].agent.ringstring or nullRequired

    Update ring the agent is on, or null.

  • data[].agent.approvalstring or nullRequired

    Agent approval state, or null.

  • data[].agent.lastSeenAtstring or nullRequired

    When the agent last checked in (ISO 8601), or null.

  • data[].healthobjectRequired

    Health flags that need attention.

  • data[].health.patchesPendingbooleanRequired

    True when patches are pending.

  • data[].health.openAlertbooleanRequired

    True when the device has an open alert.

  • data[].health.criticalAlertbooleanRequired

    True when the device has an open critical alert.

  • data[].health.thirdPartyBrokenbooleanRequired

    True when a third-party tool on the device is broken.

  • data[].health.versionDriftbooleanRequired

    True when the agent version is behind the fleet.

  • nextCursorstring or nullRequired

    Opaque cursor for the next page; pass it back as ?cursor=. Null on the last page.

Errors (401, 403, 404, 429)
  • 401 Missing 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.
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Get one device

GET/devices/{id}

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

  • idstringin pathRequired

    Device id.

Response 200

  • dataobjectRequired

    The response payload.

  • data.idstringRequired

    Record id (use it to link or fetch the record).

  • data.namestringRequired

    Display name.

  • data.hostnamestringRequired

    Hostname reported by the device agent.

  • data.clientobjectRequired

    The client organization this record belongs to.

  • data.client.idstringRequired

    Record id (use it to link or fetch the record).

  • data.client.namestringRequired

    Display name.

  • data.deviceTypestring or nullRequired

    Device type (workstation, server, ...), or null.

  • data.rolestring or nullRequired

    Device role, or null.

  • data.osstring or nullRequired

    Operating system name, or null.

  • data.osVersionstring or nullRequired

    Operating system version, or null.

  • data.manufacturerstring or nullRequired

    Hardware manufacturer, or null.

  • data.modelstring or nullRequired

    Hardware model, or null.

  • data.serialNumberstring or nullRequired

    Hardware serial number, or null.

  • data.onlinebooleanRequired

    True when the device is online now (derived from its last check-in, never a cached flag).

  • data.lastSeenstring or nullRequired

    When the device last checked in (ISO 8601), or null.

  • data.lastBootAtstring or nullRequired

    When the device last booted (ISO 8601), or null.

  • data.lastLoginUserstring or nullRequired

    Last user who logged in on the device, or null.

  • data.assignedTostring or nullRequired

    Name of the person it is assigned to, or null when unassigned.

  • data.primaryUserobject or nullRequired

    The device primary user, or null.

  • data.primaryUser.idstringRequired

    Record id (use it to link or fetch the record).

  • data.primaryUser.namestring or nullRequired

    Display name.

  • data.archivedAtstring or nullRequired

    When the device was archived (ISO 8601), or null.

  • data.warrantyobjectRequired

    Warranty facts.

  • data.warranty.statusstring or nullRequired

    Warranty status, or null.

  • data.warranty.expiresAtstring or nullRequired

    When the warranty expires (ISO 8601), or null.

  • data.warranty.providerstring or nullRequired

    Warranty provider, or null.

  • data.agentobject or nullRequired

    Device agent facts, or null when no agent is installed.

  • data.agent.versionstring or nullRequired

    Installed agent version, or null.

  • data.agent.ringstring or nullRequired

    Update ring the agent is on, or null.

  • data.agent.approvalstring or nullRequired

    Agent approval state, or null.

  • data.agent.lastSeenAtstring or nullRequired

    When the agent last checked in (ISO 8601), or null.

Errors (401, 403, 404, 429)
  • 401 Missing 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.
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

List hidden health issues of a device

GET/devices/{id}/health-suppressions

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

  • idstringin pathRequired

    Device id.

Response 200

  • dataobject[]Required

    The hidden health issues of the device, one row per hidden issue.

  • data[].idstringRequired

    Record id of the suppression (use it with the restore call).

  • data[].kindKeystringRequired

    The kind of Health issue that is hidden, for example disk.free_low.

  • data[].dimensionstringRequired

    The part of the kind that is hidden (a disk volume, a startup item). Empty means the whole kind on this device.

  • data[].issuestringRequired

    The issue in plain words.

  • data[].modestringRequired

    Dismissed: this occurrence only. Silenced: until the date. Ignored: until someone restores it.

    One of: DISMISSED, SILENCED, IGNORED.

  • data[].untilstring or nullRequired

    When a silence ends (ISO 8601), or null.

  • data[].reasonstring or nullRequired

    The reason the person gave, or null.

  • data[].createdAtstringRequired

    When it was set (ISO 8601).

  • data[].createdByNamestring or nullRequired

    Who set it.

Errors (401, 403, 404, 429)
  • 401 Missing 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.
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Hide a health issue on a device

POST/devices/{id}/health-suppressions

Scope write:devicesChanges dataNeeds the msp module

Requires the write: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

  • idstringin pathRequired

    Device id.

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • kindKeystringRequired

    Key of the health check kind to suppress.

    Up to 200 characters.

  • dimensionstring

    Optional sub-item the suppression applies to; empty for the whole kind.

    Up to 500 characters.

  • modestringRequired

    How the suppression behaves.

    One of: DISMISSED, SILENCED, IGNORED.

  • daysnumber

    How many days the suppression lasts (7 or 30).

  • reasonstring

    Why this is being done; kept in the record for later review.

    Up to 500 characters.

  • forcedOrgIdstring

    Set by the portal for client-limited keys to pin the call to one client company; leave empty.

Response 200

  • dataobjectRequired

    The suppression that was created.

  • data.idstringRequired

    Record id of the new suppression (use it with the restore call).

  • data.modestringRequired

    Dismissed: this occurrence only. Silenced: until the date. Ignored: until someone restores it.

    One of: DISMISSED, SILENCED, IGNORED.

  • data.untilstring or nullRequired

    When a silence ends (ISO 8601), or null.

  • data.closedAlertsnumberRequired

    How many open alerts of the issue were put away.

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing 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.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Restore a hidden health issue

DELETE/devices/{id}/health-suppressions/{suppressionId}

Scope write:devicesChanges dataNeeds the msp module

Requires the write: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

  • idstringin pathRequired

    Device id.

  • suppressionIdstringin pathRequired

    Suppression id, as the list call returns it.

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • forcedOrgIdstring

    Set by the portal for client-limited keys to pin the call to one client company; leave empty.

Response 200

  • dataobjectRequired

    The result of the restore.

  • data.clearedbooleanRequired

    Always true: the issue shows again.

  • data.revivedAlertsnumberRequired

    How many alerts came back.

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing 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.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Heal a patch id on a device

POST/devices/{id}/patching/heal

Scope write:device_executeChanges dataNeeds the msp module

Requires the write:device_execute 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

  • idstringin pathRequired

    Device id.

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • stepstringRequired

    propose to ask for a corrected id and queue a read-only check, or apply to write the checked id into the catalog.

    One of: propose, apply.

  • wingetIdstring

    Propose only. The winget id that failed.

    Up to 256 characters.

  • failureCommandIdstring

    Propose only. The id of the install command that failed.

    Up to 64 characters.

  • testCommandIdstring

    Apply only. The id of the finished check command that propose queued.

    Up to 64 characters.

  • fromWingetIdstring

    Apply only. The winget id being replaced.

    Up to 256 characters.

  • reasonstringRequired

    Why this destructive action is being done (recorded in the audit log with the door it came through).

    At least 3 characters. Up to 2000 characters.

Response 200

  • dataobjectRequired

    The outcome of the heal step.

  • data.stepstringRequired

    Which step this answer is for.

    One of: propose, apply.

  • data.healableboolean

    Propose: whether the failure was an id problem worth fixing.

  • data.proposedboolean

    Propose: whether a corrected id was found and a check queued.

  • data.healedboolean

    Apply: whether the catalog was updated.

  • data.reasonstring

    Why nothing was proposed or written (for example not_healable, no_ai, test_not_found).

  • data.messagestring

    A sentence for the operator when the answer is degraded.

  • data.wingetIdstring

    The proposed or healed winget id.

  • data.testCommandIdstring

    Propose: the read-only check command queued on the device.

  • data.commandIdstring

    Apply: the re-queued install command.

  • data.typestring

    Always a patch script run.

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing 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.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Install a catalog app on a device

POST/devices/{id}/patching/install

Scope write:device_executeChanges dataNeeds the msp module

Requires the write:device_execute 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

  • idstringin pathRequired

    Device id.

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • wingetIdstringRequired

    The winget id of an enabled app in the patch catalog, for example Google.Chrome.

    Up to 256 characters.

  • reasonstringRequired

    Why this destructive action is being done (recorded in the audit log with the door it came through).

    At least 3 characters. Up to 2000 characters.

Response 200

  • dataobjectRequired

    The command that was queued on the device.

  • data.commandIdstringRequired

    Id of the queued command. Poll it at the device patching status call.

  • data.typestringRequired

    Always a patch script run; no other command type is reachable from here.

  • data.statusstringRequired

    Queue status right after queuing (for example QUEUED).

  • data.deviceIdstringRequired

    Id of the device the command was queued on.

  • data.deviceNamestring or nullRequired

    Name of the device.

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing 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.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Install a Windows Update KB on a device

POST/devices/{id}/patching/install-kb

Scope write:device_executeChanges dataNeeds the msp module

Requires the write:device_execute 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

  • idstringin pathRequired

    Device id.

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • kbIdstringRequired

    The Windows Update KB id, for example KB5034441.

    Up to 16 characters.

  • reasonstringRequired

    Why this destructive action is being done (recorded in the audit log with the door it came through).

    At least 3 characters. Up to 2000 characters.

Response 200

  • dataobjectRequired

    The command that was queued on the device.

  • data.commandIdstringRequired

    Id of the queued command. Poll it at the device patching status call.

  • data.typestringRequired

    Always a patch script run; no other command type is reachable from here.

  • data.statusstringRequired

    Queue status right after queuing (for example QUEUED).

  • data.deviceIdstringRequired

    Id of the device the command was queued on.

  • data.deviceNamestring or nullRequired

    Name of the device.

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing 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.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Scan a device for third-party patches

POST/devices/{id}/patching/scan

Scope write:device_executeChanges dataNeeds the msp module

Requires the write:device_execute 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

  • idstringin pathRequired

    Device id.

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • reasonstringRequired

    Why this destructive action is being done (recorded in the audit log with the door it came through).

    At least 3 characters. Up to 2000 characters.

Response 200

  • dataobjectRequired

    The command that was queued on the device.

  • data.commandIdstringRequired

    Id of the queued command. Poll it at the device patching status call.

  • data.typestringRequired

    Always a patch script run; no other command type is reachable from here.

  • data.statusstringRequired

    Queue status right after queuing (for example QUEUED).

  • data.deviceIdstringRequired

    Id of the device the command was queued on.

  • data.deviceNamestring or nullRequired

    Name of the device.

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing 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.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

Update a catalog app on a device

POST/devices/{id}/patching/update

Scope write:device_executeChanges dataNeeds the msp module

Requires the write:device_execute 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

  • idstringin pathRequired

    Device id.

  • Idempotency-Keystringin header

    Optional. Send a unique value per intended change; a retry with the same value within 24 hours replays the first answer instead of changing anything twice. Scoped to your API key.

Request body

  • wingetIdstringRequired

    The winget id of an enabled app in the patch catalog, for example Google.Chrome.

    Up to 256 characters.

  • reasonstringRequired

    Why this destructive action is being done (recorded in the audit log with the door it came through).

    At least 3 characters. Up to 2000 characters.

Response 200

  • dataobjectRequired

    The command that was queued on the device.

  • data.commandIdstringRequired

    Id of the queued command. Poll it at the device patching status call.

  • data.typestringRequired

    Always a patch script run; no other command type is reachable from here.

  • data.statusstringRequired

    Queue status right after queuing (for example QUEUED).

  • data.deviceIdstringRequired

    Id of the device the command was queued on.

  • data.deviceNamestring or nullRequired

    Name of the device.

Errors (400, 401, 402, 403, 404, 429)
  • 400 The body or a parameter is not valid for this operation (apiInvalidInput); the sentence names the field.
  • 401 Missing 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.
  • 402 This portal is locked for changes (a trial ended or a payment is overdue): writes are refused until it is settled; reads keep working (apiLocked).
  • 403 The 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).
  • 404 Not found for this key, or the msp module is not enabled on this instance (code moduleNotEnabled).
  • 429 Rate limit exceeded; wait Retry-After seconds.

All API areas →