List locations
| Method | Path |
|---|---|
GET | /v1/slim/location |
Authentication · Access policies
Lists the locations (rooms and beds) in your project, with the device, resident and zone at each one. Use it for the location table in the Slim dashboard.
Auth: Bearer token. The caller must be a practitioner, an admin, a super admin, or hold the "System Owner" access policy. The access policy must grant Location:search and Location:read (admins and super admins skip this check).
Scope: The caller's project (from the token). Only locations, devices and residents in that project are returned.
Behaviour
- Read-only.
- One row per device. A location with several devices appears once per device. A location with no device appears once, without device and resident fields.
totalcounts rows, not locations. patientIdandpatientNameare the resident assigned to that row's device.organizationIdandorganizationNameare the location's zone.searchmatches, as a case-insensitive substring, the location name, the name of a device at the location, the name of a resident on such a device, or the zone name.floor,roomandbedmatch the location's codes exactly.organizationIdkeeps locations in that zone.deviceIdkeeps only the row for that device.- Rows are sorted by floor, room, bed, device name, then location name. The sort is case-insensitive and numeric-aware ("2" before "10"). Rows with a missing value sort after rows that have one.
- Pagination is zero-based:
page(default0) andcount(default20, max100). - Unknown query parameters are rejected.
Example
curl -X GET 'https://api.sandbox.ovok.com/v1/slim/location?search=Room%20201&page=0&count=20' \
-H "Authorization: Bearer ${OVOK_TOKEN}"
Successful response
200 — Locations retrieved successfully.
Errors
| Status | Meaning |
|---|---|
400 | Your session has no project. |
401 | Bearer token is missing, invalid or expired. |
403 | You are not a practitioner, admin or System Owner, or you lack Location:search or Location:read. |
422 | A query parameter fails validation. |