All Devices
FetchDevice
Fetch a device and its state.
curl $API_HOST/v1/devices/$DEVICE_ID -H "Authorization: Bearer $API_KEY"
get/devices/{deviceId}
Path parameters
deviceIdstring required
This is the canonical device id used in the device certificate, and as the MQTT client id.
Example:nrf-1234567890123456789000
Query parameters
transformstring[]
Not a true array of strings, but rather a JSONata expression such as id or { "id": id, "type": type }. For more information see Transforming JSON Responses guide.
Response
Ok
Example response
{
"id": "nrf-1234567890123456789000",
"name": "new-device-name",
"tags": [
"warehouse-east",
"temperature"
],
"tenantId": "a5592ec1-18ae-4d9d-bc44-1d9bd927bbe9",
"firmware": {
"supports": [
"BOOT",
"APP",
"MODEM",
"SOFTDEVICE"
]
},
"state": {
"reported": {
"connected": false,
"sessionIdentifier": "ab6af4e7-32e8-4107-94d8-f096e776c077",
"pairing": {
"state": "paired",
"topics": {
"d2c": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/m/d/nrf-123456789012345",
"c2d": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/m/d/nrf-123456789012345/c2d"
}
},
"nrfcloud_mqtt_topic_prefix": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/",
"device": {
"networkInfo": {
"currentBand": 20,
"supportedBands": "(1,2,3,4,5,8,12,13,17,18,19,20,25,26,28,66)\r\n",
"areaCode": 3030,
"mccmnc": "22801",
"ipAddress": "10.1.10.106",
"ueMode": 2,
"cellID": 17513992,
"networkMode": "LTE-M GPS"
},
"simInfo": {
"uiccMode": 1,
"iccid": "89410119346707573424",
"imsi": "228017001757342"
},
"deviceInfo": {
"modemFirmware": "mfw_nrf9160_1.2.0",
"batteryVoltage": 5203,
"imei": "123456789012345",
"board": "nrf9160_pca10090",
"appVersion": "v1.2.0-406-gbc7ade8b14a1",
"appName": "asset_tracker"
},
"serviceInfo": {
"ui": [
"GPS",
"FLIP",
"TEMP",
"HUMID",
"AIR_PRESS",
"RSRP"
],
"fota_v1": [
"APP",
"MODEM"
]
}
},
"config": {
"GPS": {
"enable": false
}
}
},
"desired": {
"pairing": {
"state": "paired",
"topics": {
"d2c": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/m/d/nrf-123456789012345",
"c2d": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/m/d/nrf-123456789012345/c2d"
}
},
"nrfcloud_mqtt_topic_prefix": "prod/7c219c23-644e-4565-9fe7-6c56ab8bf949/"
},
"delta": {
"config": {
"GPS": {
"enable": true
}
}
},
"metadata": {
"desired": {
"pairing": {
"state": {
"timestamp": 1594295242
},
"topics": {
"d2c": {
"timestamp": 1594295242
},
"c2d": {
"timestamp": 1594295242
}
}
},
"nrfcloud_mqtt_topic_prefix": {
"timestamp": 1594295242
}
},
"reported": {
"connected": {
"timestamp": 1594395957
},
"sessionIdentifier": {
"timestamp": 1594395957
},
"pairing": {
"state": {
"timestamp": 1594395561
},
"topics": {
"d2c": {
"timestamp": 1594395561
},
"c2d": {
"timestamp": 1594395561
}
}
},
"nrfcloud_mqtt_topic_prefix": {
"timestamp": 1594395561
},
"device": {
"networkInfo": {
"currentBand": {
"timestamp": 1594395562
},
"supportedBands": {
"timestamp": 1594395562
},
"areaCode": {
"timestamp": 1594395562
},
"mccmnc": {
"timestamp": 1594395562
},
"ipAddress": {
"timestamp": 1594395562
},
"ueMode": {
"timestamp": 1594395562
},
"cellID": {
"timestamp": 1594395562
},
"networkMode": {
"timestamp": 1594395562
}
},
"simInfo": {
"uiccMode": {
"timestamp": 1594395562
},
"iccid": {
"timestamp": 1594395562
},
"imsi": {
"timestamp": 1594395562
}
},
"deviceInfo": {
"modemFirmware": {
"timestamp": 1594395562
},
"batteryVoltage": {
"timestamp": 1594395562
},
"imei": {
"timestamp": 1594395562
},
"board": {
"timestamp": 1594395562
},
"appVersion": {
"timestamp": 1594395562
},
"appName": {
"timestamp": 1594395562
}
},
"serviceInfo": {
"ui": [
{
"timestamp": 1594395562
},
{
"timestamp": 1594395562
},
{
"timestamp": 1594395562
},
{
"timestamp": 1594395562
},
{
"timestamp": 1594395562
},
{
"timestamp": 1594395562
}
],
"fota_v1": [
{
"timestamp": 1594395562
},
{
"timestamp": 1594395562
}
]
}
},
"config": {
"GPS": {
"enable": {
"timestamp": 1594295362
}
}
}
}
},
"version": 8115
}
}