API and integrations¶
On this page: the three interfaces of the Lutra backend, who uses which, how readings flow through the ingest, and the versioning rules. This chapter describes the public behaviour only; it contains no keys or internal configuration.
Three interfaces¶
| Interface | For | Transport | Page |
|---|---|---|---|
| Device interface | Lutra Lite boxes | MQTT over TLS with a client certificate per box, iot.lutrapool.com:8883 |
Device messages (MQTT) |
| External devices | Measuring devices that do not run Lutra firmware | MQTT (8883) or HTTPS (8443) with a client certificate, write only | External devices |
REST API /v1 |
Lutra Insight, the owner view, and later third-party applications | HTTPS with JSON, signed-in users | REST API |
A PLC that already controls the pool sends its readings as an external device; see Connecting a PLC.
Remote actions towards a box (settings and signed commands) are described in Remote commands and settings.
The data path¶
- Everything after the ingest (storage, alerts, API, apps) does not know where a value came from: all sources deliver the same quantities with fixed units.
- Assignment with validity: a source delivers to a pool from a start date to an end date. A source without assignment (in stock, not yet activated) is archived but shown to nobody.
- Duplicates (for example a resent message from a box's buffer) are removed, so resending is always safe.
Platform¶
The backend is serverless on AWS in eu-central-1 (Frankfurt): AWS IoT Core for device connections, AWS Lambda behind API Gateway for the REST API, DynamoDB and S3 for storage, Cognito for sign-in, and AWS KMS for signing keys. There are separate test and production environments; a box belongs to one environment.
Stability of /v1¶
- A field never disappears within
/v1; new behaviour comes as a new field or as/v2. - Device topics are versioned too (
lutra/v1/...); message formats carry a version fieldv.
To be confirmed
- A published OpenAPI description of the REST API.
- Access for third-party applications with machine credentials (OAuth2 client credentials with scopes such
as
pools:read,measurements:read) and webhooks are designed but not available. - Cloud connectors for manufacturer clouds (Fluidra Pool first) are designed but not available.
Related pages¶
Last reviewed: 2026-11-24. Applies to Lutra Lite 0.4.1.