List objects
Deprecated
GET
/objects/list.json
const url = 'https://example.com/api/v1.25f/objects/list.json';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://example.com/api/v1.25f/objects/list.json \ --header 'Authorization: <Authorization>'Deprecated. For new integrations, use GET /devices and read the
returned object_id and object_name values there.
Returns the list of objects available to the authenticated token.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful response containing object list
Media typeapplication/json
object
data
required
Array of object entries
Array<object>
object
object_id
required
Unique identifier for the object
integer format: int64
object_name
required
Human-readable name of the object
string
Examples
Exampleobject_list
Example object list response
{ "data": [ { "object_id": 31021, "object_name": "Riga Plant - Building 3" }, { "object_id": 31022, "object_name": "Riga Plant - Warehouse" } ]}default
Section titled “default”Error response with details
Media typeapplication/json
object
error
required
Description of the error
string
parent
Parent error if this is a nested error
string
Examples
Invalid time range error
{ "error": "time_to must be after time_from"}Unauthorized access error
{ "error": "invalid token"}