API Reference

All endpoints live under /api/v1/ and exchange JSON. Requests are authenticated with JWT tokens kept in httpOnly cookies.

Description

Signing In

Authentication uses JWT in httpOnly cookies: signing in returns an access token and a refresh token. Two-factor authentication (TOTP) is available.

Authentication Endpoints

Pipelines

Sensors

Leak Events

Alerts

WebSocket

The WebSocket endpoint streams sensor readings and leak events as they happen. Connect with a valid authentication cookie.

Message Format

The connection is authenticated: the token in the httpOnly cookie is checked when the connection is upgraded.