Get device telemetry and alerts
| Method | Path |
|---|---|
GET | /v1/slim/telemetry/:deviceId |
Authentication · Access policies
Returns the current telemetry and alerts for one device. Use it to poll the resident detail view.
Auth: bearer token. The caller must be a practitioner, an admin or a System Owner, and needs Device:read.
Scope: the caller's project (from the token). Only devices in that project are found.
Behaviour
deviceIdis either the device identifier (for exampleSleepiz/3001000) or the Device resource id (a UUID). A UUID is resolved to the identifier.- The response
deviceIdis the identifier the telemetry is keyed by. telemetryandalertshave the same shape as one entry ofGET /v1/slim/device/live/telemetry.- The device is looked up among the first 1000 devices of your project, including devices without a resident.
- Telemetry is read fresh on every request.
Example
curl -X GET 'https://api.sandbox.ovok.com/v1/slim/telemetry/3f1c2b7e-8d4a-4c1e-9b2f-6a7d5e4c3b21' \
-H "Authorization: Bearer ${OVOK_TOKEN}"
Successful response
200 — Current telemetry and alerts for the device.
Errors
| Status | Meaning |
|---|---|
401 | Bearer token is missing, invalid or expired. |
403 | You are not a practitioner, admin or System Owner, you lack Device:read, your session has no project, or you cannot access the project. |
404 | No telemetry or alerts exist for this device in your project. |