Skip to content

Retrieve configuration for a device

GET
/devices/id/config

Parameters

Path Parameters

id*

device id

Typenumber
Required

Query Parameters

refresh

unused

Typeboolean

Responses

Body (JSON)
JSON
{
"currentFW": "string",
"otaFW": "string",
"interval": 0,
"sleepInterval": 0,
"packing": 0,
"movementSensitivity": 0,
"debounce": 0,
"movementSensitivity2": 0,
"behavior": 0,
"modeControl": 0,
"modeControl2": 0,
"gpsTimeout": 0,
"transmitTimeout": 0,
"gpsStabilize": 0,
"gpsCheckInterval": 0,
"stopTimeout": 0,
"tolerancePercentage": 0,
"reasonsToWake": [
{
}
],
"modified": "string",
"forceFw": true,
"updateAvailibility": 0,
"receivedAt": "string",
"reset": 0,
"flashTryCount": 0,
"homeWifiNetwork": "string",
"wakeAction": "string",
"alertAction": "string",
"timed": [
{
}
],
"command": 0,
"id": 0,
"deviceId": 0,
"safeZoneId": 0
}

Samples

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