Skip to content

List devices

Deprecated
GET
/devices/list.json
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.

include

Space-separated includes. Supported values: object

string
Allowed values: object

Example

object
device_id

Space-separated list of device IDs to filter by.

string

Example

210404 210405

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"
}
}
]
}

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"
}