cURL
curl --request GET \ --url https://api.electra.systems/v1/public/devices \ --header 'Authorization: Bearer <token>'
{ "message": "Devices retrieved", "data": { "docs": [ { "name": "<string>", "alias": "<string>", "deviceId": "<string>", "description": "<string>", "type": "<string>", "status": "<string>", "createdAt": "<string>", "updatedAt": "<string>", "meta": { "band": "<string>" }, "privacy": "<string>", "installation": "<string>", "latestData": { "status": 1, "createdAt": "2023-11-07T05:31:56Z" } } ], "totalDocs": 123, "limit": 123, "totalPages": 123, "page": 123, "pagingCounter": 123, "hasPrevPage": true, "hasNextPage": true, "prevPage": 123, "nextPage": 123 } }
Returns a list of user devices. Requires authentication.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The maximum number of results to return
Page number for pagination
Devices retrieved
Response message
"Devices retrieved"
Paginated device data
Show child attributes