Get all rooms
const url = 'https://api.occulights.com/api/v1/rooms/';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.occulights.com/api/v1/rooms/ \ --header 'Authorization: <Authorization>'Retrieves all rooms for the authenticated tenant
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
object
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.
object
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.
Inventory is not inside this tenant, so no foreign key here
These are mutually exclusive
These are only in use on standalone lights, otherwise they are decided by the sensor
object
Inventory is not inside this tenant, so no foreign key here
object
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.
Inventory is not inside this tenant, so no foreign key here
These are mutually exclusive
These are only in use on standalone lights, otherwise they are decided by the sensor
Example
[ { "lights": [ { "lightState": "on", "webServer": "enabled" } ], "sensor": { "lightState": "on", "lights": [ { "lightState": "on", "webServer": "enabled" } ], "webServer": "enabled" } }]Unauthorized
Example generated
exampleNo rooms found
object
Example generated
{ "message": "example"}Internal Server Error