Skip to content

One device with its channels (read)​

GET
/api/v1/devices/{id}

Authorizations​

or
session
Type
API Key (cookie: pvmon_session)
or
token

API token pvm_<id>_<secret>.

Type
HTTP (bearer)

Parameters​

Path Parameters

id*
Type
string
Required

Responses​

The device.

application/json
JSON
{
  
"id": "string",
  
"profile": "string",
  
"vendor": "string",
  
"models": [
  
  
"string"
  
],
  
"transport": "string",
  
"verified": true,
  
"state": "string",
  
"interval_s": 0,
  
"meters": [
  
  
"string"
  
],
  
"last_poll": {
  
  
"at": "2024-01-01T00:00:00Z",
  
  
"took_ms": 0,
  
  
"ok": true
  
},
  
"netting": "string",
  
"read": "string",
  
"status": [
  
  
{
  
  
  
"name": "string",
  
  
  
"label": {
  
  
  
  
"additionalProperties": "string"
  
  
  
}
  
  
}
  
],
  
"blocks": [
  
  
{
  
  
  
"meter": "string",
  
  
  
"label": "string",
  
  
  
"role": "string",
  
  
  
"block": "string",
  
  
  
"channels": [
  
  
  
  
{
  
  
  
  
  
"name": "string",
  
  
  
  
  
"key": "string",
  
  
  
  
  
"unit": "string"
  
  
  
  
}
  
  
  
]
  
  
}
  
]
}

Samples​

Version 0.4.0-66c93c2. MIT license.