Skip to content

Get device

GET
/devices/id

Parameters

Path Parameters

id*

Model id

Typestring
Required

Query Parameters

filter

Filter defining fields and include - must be a JSON-encoded string ({"something":"value"})

Typestring

Responses

Body (JSON)
JSON
{
"imei": "string",
"iccid": "string",
"loraId": 0,
"imsi": "string",
"btMac": 0,
"btMacAddress": "string",
"uwbId": 0,
"serial": "string",
"type": "string",
"expires": "string",
"lastConnection": "string",
"firstSeen": "string",
"mode": "string",
"name": "string",
"batteryVoltage": 0,
"batteryPct": 0,
"batteryType": "string",
"tags": [
"string"
],
"currentMode": 0,
"color": "string",
"saveToWeb": true,
"active": true,
"deepSleep": true,
"simstate": "string",
"stripeSubscription": "string",
"subscriptionType": "string",
"meta": {
},
"siloId": 0,
"resellerId": 0,
"resellerPlanId": 0,
"btPasskey": 0,
"simType": "string",
"id": 0,
"ownerId": 0,
"onoWhitelistId": 0
}

Samples

cURL
curl -X GET https://api.lightbug.cloud/api/devices/id
JavaScript
fetch("https://api.lightbug.cloud/api/devices/id")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://api.lightbug.cloud/api/devices/id");
Python
import requests
response = requests.get("https://api.lightbug.cloud/api/devices/id")
print(response.json())