Get domain stats
Description
Get stats for a domain, stats are performance metrics which gives some idea about the usage of a given domain.
Request
GET /v1/domains/:domain/stats
Response
Successful response contains the following JSON formated body:
{
devicesConfigured: number,
devicesSeenOnline: 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/domains/:domain/stats" \
-H "Authorization: Bearer <ApiKey>" \
-H "X-Nabto-Organization: <OrganizationId>"
Response
{
devicesConfigured: 42,
devicesSeenOnline: 42
}