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 } }
Returns real-time insights and analytics for the current day for a specific device. Provides live metrics including uptime, downtime, consumption, and reliability calculated from midnight to current time in the device’s timezone.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The device ID or alias
Today data retrieved
Response message
"Today data retrieved"
Show child attributes