Skip to main content
GET
/
devices
/
{deviceId}
/
data
cURL
curl --request GET \
  --url https://api.electra.systems/v1/public/devices/{deviceId}/data \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "data": {
    "docs": [
      {
        "deviceId": "<string>",
        "data": {
          "clientId": "<string>",
          "id": 123,
          "deviceID": "<string>",
          "sn": "<string>",
          "tp": "2023-11-07T05:31:56Z",
          "status": 123,
          "signalstrength": 123,
          "v1": 123,
          "v2": 123,
          "v3": 123,
          "i1": 123,
          "i2": 123,
          "i3": 123,
          "kwh": 123,
          "pf": 123,
          "freq": 123,
          "bt": 123
        },
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "totalDocs": 123,
    "limit": 123,
    "totalPages": 123,
    "page": 123,
    "pagingCounter": 123,
    "hasPrevPage": true,
    "hasNextPage": true,
    "prevPage": 123,
    "nextPage": 123
  }
}

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 (max 200)

Required range: x <= 200
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

Data data retrieved

message
string
data
object