Get occupancy events for sensor
curl --request POST \
--url https://api2.rhombussystems.com/api/occupancy/getOccupancyEventsForSensor \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"createdAfterMs": 1640908800000,
"createdBeforeMs": 1640995200000,
"limit": 100,
"sensorUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
'import requests
url = "https://api2.rhombussystems.com/api/occupancy/getOccupancyEventsForSensor"
payload = {
"createdAfterMs": 1640908800000,
"createdBeforeMs": 1640995200000,
"limit": 100,
"sensorUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
headers = {
"x-auth-scheme": "<x-auth-scheme>",
"x-auth-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-auth-scheme': '<x-auth-scheme>',
'x-auth-apikey': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
createdAfterMs: 1640908800000,
createdBeforeMs: 1640995200000,
limit: 100,
sensorUuid: 'AAAAAAAAAAAAAAAAAAAAAA'
})
};
fetch('https://api2.rhombussystems.com/api/occupancy/getOccupancyEventsForSensor', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api2.rhombussystems.com/api/occupancy/getOccupancyEventsForSensor")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"createdAfterMs\": 1640908800000,\n \"createdBeforeMs\": 1640995200000,\n \"limit\": 100,\n \"sensorUuid\": \"AAAAAAAAAAAAAAAAAAAAAA\"\n}")
.asString();{
"error": true,
"errorMsg": "<string>",
"events": [
{
"baseStationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"batteryPercentage": 123,
"bleDeviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"bleRssi": 123,
"closeBaseStations": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"lux": 123,
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"state": "VACANT",
"stateChanged": true,
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA",
"tampered": true,
"timestampMs": 123
}
],
"warningMsg": "<string>"
}Occupancy Webservice
Get occupancy events for sensor
Get recent events for specified proximity tag
POST
/
api
/
occupancy
/
getOccupancyEventsForSensor
Get occupancy events for sensor
curl --request POST \
--url https://api2.rhombussystems.com/api/occupancy/getOccupancyEventsForSensor \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"createdAfterMs": 1640908800000,
"createdBeforeMs": 1640995200000,
"limit": 100,
"sensorUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
'import requests
url = "https://api2.rhombussystems.com/api/occupancy/getOccupancyEventsForSensor"
payload = {
"createdAfterMs": 1640908800000,
"createdBeforeMs": 1640995200000,
"limit": 100,
"sensorUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
headers = {
"x-auth-scheme": "<x-auth-scheme>",
"x-auth-apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-auth-scheme': '<x-auth-scheme>',
'x-auth-apikey': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
createdAfterMs: 1640908800000,
createdBeforeMs: 1640995200000,
limit: 100,
sensorUuid: 'AAAAAAAAAAAAAAAAAAAAAA'
})
};
fetch('https://api2.rhombussystems.com/api/occupancy/getOccupancyEventsForSensor', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api2.rhombussystems.com/api/occupancy/getOccupancyEventsForSensor")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"createdAfterMs\": 1640908800000,\n \"createdBeforeMs\": 1640995200000,\n \"limit\": 100,\n \"sensorUuid\": \"AAAAAAAAAAAAAAAAAAAAAA\"\n}")
.asString();{
"error": true,
"errorMsg": "<string>",
"events": [
{
"baseStationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"batteryPercentage": 123,
"bleDeviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"bleRssi": 123,
"closeBaseStations": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"lux": 123,
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"state": "VACANT",
"stateChanged": true,
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA",
"tampered": true,
"timestampMs": 123
}
],
"warningMsg": "<string>"
}Authorizations
Your Rhombus API key. Must be accompanied by the x-auth-scheme header set to api-token (or partner-api-token for partner endpoints).
Headers
Authentication scheme identifier. Use api-token for standard API key authentication, partner-api-token for partner API key authentication. Must be paired with the x-auth-apikey header containing your API key.
Available options:
api-token, api, partner-api-token, partner-api Body
application/json
Request object for getting occupancy events for a specific sensor.
Filter events created after this timestamp (milliseconds since epoch)
Example:
1640908800000
Filter events created before this timestamp (milliseconds since epoch)
Example:
1640995200000
Maximum number of events to return
Example:
100
base 64 (url-safe) uuid string
Example:
"AAAAAAAAAAAAAAAAAAAAAA"
Last modified on October 5, 2026