Documentation
Everything the web screens do is available over a documented HTTP API, so other systems can read your data or push readings.
The basics
The API lives under /api/v1. Requests carry a bearer token: a person’s session from POST /api/v1/auth/login, or an integration key created by an organisation administrator.
- Everything an organisation owns is under /api/v1/orgs/{orgId}/…
- Lists return {"items": […], "page": {"limit", "count", "total", "next_cursor"}}; pass next_cursor back as cursor.
- Errors share one envelope with a stable code: {"error": {"code", "reason", "correlation_id", "fields"}}. Branch on code, not on reason.
- Add an Idempotency-Key header to changes you may repeat; a repeat returns the stored answer instead of acting twice.
- A person with several roles in an organisation selects one per request with X-Active-Role.
Sign in and list buildings
curl -s -X POST https://YOUR-HOST/api/v1/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"you@example.com","password":"…"}'
# → {"token":"…","expires_at":"…"}
curl -s https://YOUR-HOST/api/v1/orgs/ORG_ID/buildings \
-H "Authorization: Bearer TOKEN"