Skip to content

Get all rooms

GET
/rooms/
curl --request GET \
--url https://api.occulights.com/api/v1/rooms/ \
--header 'Authorization: <Authorization>'

Retrieves all rooms for the authenticated tenant

OK

Media typeapplication/json
Array<object>
object
addonEnabled

Marks this room as consuming one of the company’s addon (Cisco Spaces / analytics / ghost meetings / autobooking) license slots. Manually toggled via onPutRoomAddonEnabled, capped at the addon quota, never auto-assigned. Defaults false so existing rooms are unaffected.

boolean
floorNo
integer
id
string
lights
Array<object>
object
brightness
integer
hardwareVersion

PCB hardware revision (e.g. “1.0.0”, “1.0.1”). Different revisions require different firmware builds, so this determines which firmware catalog a standalone light’s OTA updates are resolved against.

string
id
string
inventoryId

Inventory is not inside this tenant, so no foreign key here

string
lightState
string
Allowed values: on off
macAddress
string
name
string
roomId

These are mutually exclusive

string
sensorId
string
webServer

These are only in use on standalone lights, otherwise they are decided by the sensor

string
Allowed values: enabled disabled
location
string
name
string
sensor
object
brightness
integer
debounceDelay
integer
holdTime
integer
id
string
inventoryId

Inventory is not inside this tenant, so no foreign key here

string
lightState
string
Allowed values: on off
lights
Array<object>
object
brightness
integer
hardwareVersion

PCB hardware revision (e.g. “1.0.0”, “1.0.1”). Different revisions require different firmware builds, so this determines which firmware catalog a standalone light’s OTA updates are resolved against.

string
id
string
inventoryId

Inventory is not inside this tenant, so no foreign key here

string
lightState
string
Allowed values: on off
macAddress
string
name
string
roomId

These are mutually exclusive

string
sensorId
string
webServer

These are only in use on standalone lights, otherwise they are decided by the sensor

string
Allowed values: enabled disabled
macAddress
string
name
string
roomId
string
webServer
string
Allowed values: enabled disabled

Example

[
{
"lights": [
{
"lightState": "on",
"webServer": "enabled"
}
],
"sensor": {
"lightState": "on",
"lights": [
{
"lightState": "on",
"webServer": "enabled"
}
],
"webServer": "enabled"
}
}
]

Unauthorized

Media typeapplication/json
string

Example generated

example

No rooms found

Media typeapplication/json
object
message
string

Example generated

{
"message": "example"
}

Internal Server Error

Media typeapplication/json