Skip to main content
GET
/
devices
/
{deviceId}
/
analysed-data
cURL
curl --request GET \
  --url https://api.electra.systems/v1/public/devices/{deviceId}/analysed-data \
  --header 'Authorization: Bearer <token>'
{
  "message": "Analysed data retrieved",
  "data": [
    {
      "_id": "<string>",
      "deviceId": "<string>",
      "type": "daily",
      "date": "<string>",
      "month": 123,
      "year": 123,
      "points": 123,
      "co2": 142.5,
      "data": {},
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

deviceId
string
required

The device ID or alias

Query Parameters

limit
integer<int32>

The maximum number of results to return

page
integer<int32>

Page number for pagination

startDate
string<date-time>

Start date for data retrieval (ISO 8601 format)

endDate
string<date-time>

End date for data retrieval (ISO 8601 format)

Response

Analysed data retrieved

message
string

Response message

Example:

"Analysed data retrieved"

data
object[]

List of analysed/processed device data records