List devices
GET
/devices
const url = 'https://example.com/api/v1.25f/devices';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 \ --header 'Authorization: <Authorization>'List all devices accessible to the authenticated company.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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
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" } ]}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"}