v5

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-04-06102026.7 KB
Device

Get

Retrieve the device.

get/device

Response

Successfully retrieved the device.

object'device' required

The object type, which is always device.

idstring required

ID of the device.

namestring required

Name of the device.

status'online' | 'offline' required

The status of the device.

  • Online: The miru agent is connected
  • Offline: The miru agent is disconnected (e.g. network issues, device is powered off, etc.)
last_synced_atstring date-time required

Timestamp of when the device was last synced.

last_connected_atstring date-time required

Timestamp of the last successful connection event with the backend.

last_disconnected_atstring date-time required

Timestamp of the last successful disconnection event with the backend.

Example response

{
  "object": "device",
  "id": "dvc_123",
  "name": "My Device",
  "status": "online",
  "last_synced_at": "2021-01-01T00:00:00Z",
  "last_connected_at": "2021-01-01T00:00:00Z",
  "last_disconnected_at": "2021-01-01T00:00:00Z"
}