Skip to content

List devices

GET
/devices
curl --request GET \
--url https://example.com/api/v1.25f/devices \
--header 'Authorization: <Authorization>'

List all devices accessible to the authenticated company.

Device list retrieved

Media typeapplication/json
object
devices
required

Array of devices

Array<object>
object
device_id
required

Device ID

integer format: int64
name
required

Device name

string
device_type

Device type classification

string
nullable
is_active
required

Whether device is currently active

boolean
object_id
required

Associated object ID

integer format: int64
object_name
required

Associated object name

string

Examples

Exampledevices

Example measurements discovery response

{
"devices": [
{
"device_id": 210404,
"name": "Main Feed - Building 3",
"device_type": "gridmate",
"is_active": true,
"object_id": 31021,
"object_name": "Riga Plant - Building 3"
},
{
"device_id": 210405,
"name": "Solar Inverter - Roof A",
"device_type": "gridlink",
"is_active": true,
"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"
}