List devices
Deprecated
GET
/devices/list.json
const url = 'https://example.com/api/v1.25f/devices/list.json?include=object&device_id=210404%20210405';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/devices/list.json?include=object&device_id=210404%20210405' \ --header 'Authorization: <Authorization>'Deprecated. For new integrations, use GET /devices for discovery and
GET /devices/{device_id}/metrics to inspect supported metrics and phases.
Returns the list of devices available to the authenticated token.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”include
Space-separated includes. Supported values: object
string
Example
objectdevice_id
Space-separated list of device IDs to filter by.
string
Example
210404 210405Responses
Section titled “Responses”Successful response containing device list
Media typeapplication/json
object
data
required
Array of device objects
Array<object>
object
device_id
required
Unique identifier for the device
integer format: int64
device_name
required
Human-readable name of the device
string
object
object
object_id
required
Unique identifier for the object
integer format: int64
object_name
required
Human-readable name of the object
string
Examples
Exampledevice_list
Example device list response
{ "data": [ { "device_id": 210404, "device_name": "Main Feed - Building 3", "object": { "object_id": 31021, "object_name": "Riga Plant - Building 3" } }, { "device_id": 210405, "device_name": "Solar Inverter - Roof A", "object": { "object_id": 31021, "object_name": "Riga Plant - Building 3" } } ]}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"}