Skip to main content
POST
/
api
/
door
/
getDoorEventsForSensor
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",
  "stateFilter": "OPEN"
}
'
{
  "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

x-auth-apikey
string
header
required

Your API key for Rhombus.

Headers

x-auth-scheme
string
default:api-token
required

Authentication scheme indicator ("api-token").

Required string length: 9

Body

application/json

Request object for retrieving door open/close events for a door sensor.

createdAfterMs
integer<int64> | null

Timestamp in milliseconds to get events created after this time

Example:

1640995200000

createdBeforeMs
integer<int64> | null

Timestamp in milliseconds to get events created before this time

Example:

1640995200000

limit
integer<int32> | null

Maximum number of events to return

Example:

100

sensorUuid
string<RUUID> | null

base 64 (url-safe) uuid string

Example:

"AAAAAAAAAAAAAAAAAAAAAA"

stateFilter
enum<string> | null

Filter events by door state

Available options:
OPEN,
CLOSED,
AJAR

Response

200 - application/json

OK

Response object containing door open/close events for a door sensor.

doorEvents
object[] | null

List of door open/close events for the sensor

error
boolean | null
errorMsg
string | null
warningMsg
string | null