Get Product usage

Description

Get usage data for a Product.

Request

GET /v1/webrtc/products/:productId/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/usage" \
  -H "Authorization: Bearer <ApiKey>" \
  -H "X-Nabto-Organization: <OrganizationId>"

Response

{
   "signalingMessageCount": {
     "thisMonth": 42,
    "lastMonth": 42 
  },
  "relayByteCount": {
     "thisMonth": 42,
    "lastMonth": 42 
  }
}