Get Device usage
Description
Get usage data for a Device.
Request
GET /v1/webrtc/products/:productId/devices/:device/usage
Response
Successful response contains the following JSON formated body:
{
signalingMessageCount: {
thisMonth: number,
lastMonth: number
},
relayByteCount: {
thisMonth: number,
lastMonth: number
}
}
Response Status codes:
- 200 on success
Request headers
This request must have the following headers:
Authorization: bearer <ApiKey>
X-Nabto-Organization: <organizationId>
Example
Request
curl "https://api.cloud.nabto.com/v1/webrtc/products/:productId/devices/:device/usage" \
-H "Authorization: Bearer <ApiKey>" \
-H "X-Nabto-Organization: <OrganizationId>"
Response
{
"signalingMessageCount": {
"thisMonth": 42,
"lastMonth": 42
},
"relayByteCount": {
"thisMonth": 42,
"lastMonth": 42
}
}