π REST API
The Cloud HTTP API. Documented inline via OpenAPI β every route declares a Zod schema block consumed by @fastify/swagger + fastify-type-provider-zod.
Live Documentationβ
- Scalar UI:
<cloud-host>/api/reference - OpenAPI JSON:
<cloud-host>/documentation/json
Endpoint Groupsβ
| Module | Prefix | Owns |
|---|---|---|
auth | /api/auth | registration, login, OAuth, JWT, password reset |
stations | /api/stations | claim, members, invites, identity sync |
devices | /api/devices | proxy to Station via peer.call() (no local data) |
Conventionsβ
- All Zod schemas use
camelCasekeys - Error response:
ErrorSchemafromshared/schemas.tsβ{ statusCode, error, message } Authorization: Bearer <accessToken>on protected routes- Refresh tokens via
POST /api/auth/refresh