REST API
On this page: conventions, then the endpoints of /v1 grouped by resource. The API is used by Lutra Insight and
the owner view; each group names the permission it needs (see Roles).
To be confirmed
- Public base URL (planned:
https://api.lutrapool.com/v1).
- The API is not yet open to third-party applications; request and response schemas will be published as
an OpenAPI description. Until then this page lists endpoints only.
Conventions
- JSON over HTTPS; every request carries the user's JWT (see Authentication and access).
- Field names, enum values, query parameters and error codes are English. A request with an unknown (for
example Dutch) field name or value is refused with
400 invalid_input.
- Lutra admin reads along with
?tenant=<tenant id>&reason=<reason>.
- IDs are opaque with a prefix:
ten_ (partner), cus_ (client), pool_ (pool), bzk_ (visit).
- Errors use HTTP status codes with a JSON body
{"error": "<code>", "message": "<text>"}: a short
machine-readable code (for example 404 not_found, 429 too_many_requests, or 409 stale when a box setting
changed meanwhile) and a human-readable message.
Example:
POST /v1/pools
{"name": "Villa Rosa", "timezone": "Europe/Paris", "volume_m3": 45}
{"pool": "pool_3f9a1c2b7d", "name": "Villa Rosa", "timezone": "Europe/Paris", "volume_m3": 45,
"created": 1795242969, "customer": null, "modules": {}, "owner": {"can_switch": false, "alerts": false}}
Account and partner
| Method and path |
What |
GET /v1/me |
Current user, role, preferences |
GET, PATCH /v1/me/preferences |
Own display preferences (units, time format, first weekday, theme, start page, navigation app) |
DELETE /v1/me |
Delete own account (not the last administrator) |
GET, POST /v1/members; PATCH, DELETE /v1/members/{sub} |
Team members (administrator) |
GET /v1/audit |
Audit log (administrator, Lutra admin) |
GET, PATCH /v1/getting-started |
Getting-started checklist |
GET /v1/billing |
Billable pools per month (administrator) |
GET, POST /v1/partners; GET /v1/partners/billing |
Partners (Lutra admin) |
Clients and owners
| Method and path |
What |
GET, POST /v1/customers |
List and create clients |
GET, PATCH, DELETE /v1/customers/{id} |
One client; delete only without pools |
POST /v1/customers/{id}/pools; DELETE /v1/customers/{id}/pools/{pool} |
Link or unlink a pool |
GET /v1/customers/{id}/export; POST /v1/customers/{id}/erase |
Privacy export and erasure (administrator) |
GET, POST /v1/customers/{id}/owners; DELETE /v1/customers/{id}/owners/{sub} |
Invite and revoke owners (administrator) |
Pools, readings and sources
| Method and path |
What |
GET, POST /v1/pools |
List and create pools |
GET, PATCH /v1/pools/{id} |
One pool, including owner options per pool |
GET /v1/pools/{id}/state |
Current state per quantity |
GET /v1/pools/{id}/measurements?from=&to=&q= |
History; points as [ts, value, status, thing] |
GET, POST /v1/pools/{id}/sources; DELETE /v1/pools/{id}/sources/{thing} |
Activate a box with its pairing code; release it |
POST /v1/pools/{id}/erase |
Erase a pool with its data (administrator) |
GET, POST /v1/pools/{id}/external-devices |
External devices of a pool (administrator) |
GET, DELETE /v1/pools/{id}/external-devices/{thing} |
One external device; revoke |
POST /v1/pools/{id}/external-devices/{thing}/certificate |
Sign a certificate from {csr} |
Alerts
| Method and path |
What |
GET /v1/alerts?status=&pool=&days= |
Alerts |
POST /v1/alerts/{id}/ack |
Acknowledge |
GET, PATCH /v1/alert-settings |
Partner defaults |
GET, PATCH /v1/pools/{id}/alert-limits |
Limits per pool |
GET, PATCH /v1/me/alert-mail; POST /v1/me/alert-mail/test |
Own email alerts; test email (at most once per 5 minutes) |
Visits
| Method and path |
What |
GET, POST /v1/visits |
Visits (range at most 62 days; filter by technician, pool, status) |
GET, PATCH, DELETE /v1/visits/{id} |
One visit |
GET, POST /v1/visit-routes |
Optimised route per technician per day |
GET, PATCH /v1/visit-settings |
Depot and defaults (administrator) |
Boxes: commands, settings and control
| Method and path |
What |
GET, POST /v1/pools/{pool}/boxes/{thing}/commands |
Send a command and list recent commands with status |
GET, PATCH /v1/pools/{pool}/boxes/{thing}/settings |
Box settings through the device shadow, with revision check |
GET, POST /v1/pools/{id}/control |
Owner and partner controls (switch outputs on switching builds) |
Rules, limits and statuses: Remote commands and settings.
Related pages
Last reviewed: 2026-11-24. Applies to Lutra Lite 0.4.1.