Documentation
API reference
The API is generated from the same Zod contracts the code uses. The full OpenAPI 3 document is served live at http://localhost:4319/openapi.json; load it into any OpenAPI viewer or code generator. Every response carries an x-request-id header to quote in support requests.
Ingestion
Served by the collector at your tracker domain, not by the account API, so it is not in the API's OpenAPI document. The SDK transport sends it; you rarely call it directly.
| Method | Path | Returns |
|---|---|---|
| POST | /api/v1/collect | Send a batch of events |
Insights (tenant-scoped reads)
Every path is nested under an organization and project; cross-tenant requests get 404. Shared query parameters: since, until, bins, limit, scene, source, cellSize, bucket.
| Method | Path | Returns |
|---|---|---|
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/sessions | Session list |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/scenes | Distinct scenes |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/pointer | Pointer heatmap bins |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/camera | Camera (view-direction) heatmap bins |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/world | 3D world (click) heatmap bins |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/gaze | 3D gaze (look-at) heatmap bins |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/position | Floor-plan camera-position bins |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/meshes/top | Most-interacted meshes |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/perf | Performance summary |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/perf/daily | Per-day performance series |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/perf/distribution | FPS distribution (p05/p50/p95) |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/perf/histogram | FPS histogram bins |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/perf/frame-time | Frame-time percentiles (ms) |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/perf/jank | Jank rate |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/perf/by-device | FPS by device class |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/perf/by-scene | FPS by scene |
| GET | /api/v1/orgs/:orgId/projects/:projectId/insights/perf/resources | GPU/memory footprint percentiles |
| POST | /api/v1/orgs/:orgId/projects/:projectId/insights/batch | Resolve many insight reads in one request |
Replay and live
Replay returns raw events, so it needs the replay capability and the project's raw-retention opt-in (403 otherwise). Live endpoints emit text/event-stream.
| Method | Path | Returns |
|---|---|---|
| GET | /api/v1/orgs/:orgId/projects/:projectId/sessions/:sessionId/replay | Ordered events of one session, as NDJSON |
| GET | /api/v1/orgs/:orgId/projects/:projectId/live/presence | Active sessions (SSE) |
| GET | /api/v1/orgs/:orgId/projects/:projectId/live/stream | Minimal live event projection (SSE) |
| GET | /api/v1/orgs/:orgId/projects/:projectId/live/sessions/:sessionId | Live-follow tail of one session (SSE) |
Operational
Unauthenticated; served by every API instance.
| Method | Path | Returns |
|---|---|---|
| GET | /health | Liveness |
| GET | /ready | Readiness (backing store reachable) |
| GET | /openapi.json | Generated OpenAPI 3 document |