Skip to content

Get user geofence by id

GET
/users/id/geofences/fk

Parameters

Path Parameters

id*

user id

Typestring
Required
fk*

Foreign key for geofences

Typenumber
Required

Responses

Body (JSON)
JSON
{
"outline": [
{
}
],
"center": null,
"radius": 0,
"type": "string",
"name": "string",
"wasInside": true,
"lastChecked": "string",
"modified": true,
"meta": {
},
"foreignId": "string",
"id": 0,
"deviceId": 0,
"configId": 0,
"userId": 0
}

Samples

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