Get all inventory items
GET
/inventory/
const url = 'https://api.occulights.com/api/v1/inventory/';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/inventory/ \ --header 'Authorization: <Authorization>'Retrieves all inventory items for the authenticated tenant
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
Array<object>
object
hardwareVersion
PCB hardware revision (e.g. “1.0.0”, “1.0.1”), recorded when the unit is added to inventory. Copied onto tenantdb.Light at claim time, since different revisions require different firmware builds.
string
id
string
macAddress
string
orgId
string
standalone
boolean
type
string
Example
[ { "type": "hub" }]Unauthorized
Media typeapplication/json
string
Example generated
exampleNo inventory items found
Media typeapplication/json
object
message
string
Example generated
{ "message": "example"}Internal Server Error
Media typeapplication/json