Skip to main content
GET
/
devices
/
{deviceId}
/
today
cURL
curl --request GET \
  --url https://api.electra.systems/v1/public/devices/{deviceId}/today \
  --header 'Authorization: Bearer <token>'
{
  "message": "Today data retrieved",
  "data": {
    "uptime": 123,
    "downtime": 123,
    "uptimeCount": 123,
    "downtimeCount": 123,
    "longestSupply": 123,
    "longestOutage": 123,
    "consumption": 123,
    "peakLoad": {
      "value": 123,
      "time": "2023-11-07T05:31:56Z"
    },
    "averageLoad": 123,
    "days": 123,
    "cost": 123,
    "reliability": 123,
    "tariff": 123,
    "isDeviceOwner": true
  }
}

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

Response

Today data retrieved

message
string

Response message

Example:

"Today data retrieved"

data
object