curl --request POST \
--url https://api2.rhombussystems.com/api/door/getDoorEventsForSensor \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"createdAfterMs": 1640995200000,
"createdBeforeMs": 1640995200000,
"limit": 100,
"sensorUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"stateChangedOnly": true
}
'import requests
url = "https://api2.rhombussystems.com/api/door/getDoorEventsForSensor"
payload = {
"createdAfterMs": 1640995200000,
"createdBeforeMs": 1640995200000,
"limit": 100,
"sensorUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"stateChangedOnly": True
}
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: 1640995200000,
createdBeforeMs: 1640995200000,
limit: 100,
sensorUuid: 'AAAAAAAAAAAAAAAAAAAAAA',
stateChangedOnly: true
})
};
fetch('https://api2.rhombussystems.com/api/door/getDoorEventsForSensor', 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/door/getDoorEventsForSensor")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"createdAfterMs\": 1640995200000,\n \"createdBeforeMs\": 1640995200000,\n \"limit\": 100,\n \"sensorUuid\": \"AAAAAAAAAAAAAAAAAAAAAA\",\n \"stateChangedOnly\": true\n}")
.asString();{
"doorEvents": [
{
"baseStationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"batteryPercentage": 123,
"bleDeviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"bleRssi": 123,
"closeBaseStations": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"state": "OPEN",
"stateChanged": true,
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA",
"timestampMs": 123
}
],
"error": true,
"errorMsg": "<string>",
"warningMsg": "<string>"
}Get list of door open/close events for door sensor
Get list of door open/close events for door sensor
curl --request POST \
--url https://api2.rhombussystems.com/api/door/getDoorEventsForSensor \
--header 'Content-Type: application/json' \
--header 'x-auth-apikey: <api-key>' \
--header 'x-auth-scheme: <x-auth-scheme>' \
--data '
{
"createdAfterMs": 1640995200000,
"createdBeforeMs": 1640995200000,
"limit": 100,
"sensorUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"stateChangedOnly": true
}
'import requests
url = "https://api2.rhombussystems.com/api/door/getDoorEventsForSensor"
payload = {
"createdAfterMs": 1640995200000,
"createdBeforeMs": 1640995200000,
"limit": 100,
"sensorUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"stateChangedOnly": True
}
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: 1640995200000,
createdBeforeMs: 1640995200000,
limit: 100,
sensorUuid: 'AAAAAAAAAAAAAAAAAAAAAA',
stateChangedOnly: true
})
};
fetch('https://api2.rhombussystems.com/api/door/getDoorEventsForSensor', 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/door/getDoorEventsForSensor")
.header("x-auth-scheme", "<x-auth-scheme>")
.header("x-auth-apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"createdAfterMs\": 1640995200000,\n \"createdBeforeMs\": 1640995200000,\n \"limit\": 100,\n \"sensorUuid\": \"AAAAAAAAAAAAAAAAAAAAAA\",\n \"stateChangedOnly\": true\n}")
.asString();{
"doorEvents": [
{
"baseStationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"batteryPercentage": 123,
"bleDeviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"bleRssi": 123,
"closeBaseStations": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"state": "OPEN",
"stateChanged": true,
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA",
"timestampMs": 123
}
],
"error": true,
"errorMsg": "<string>",
"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.
api-token, api, partner-api-token, partner-api Body
Request object for retrieving door open/close events for a door sensor.
Timestamp in milliseconds to get events created after this time
1640995200000
Timestamp in milliseconds to get events created before this time
1640995200000
Maximum number of events to return
100
base 64 (url-safe) uuid string
"AAAAAAAAAAAAAAAAAAAAAA"
When true, only return events where the door state actually changed (open/close transitions), excluding the periodic heartbeat events that report an unchanged state
Filter events by door state
OPEN, CLOSED, AJAR