Skip to main content

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.

Ingestion endpoints
MethodPathReturns
POST/api/v1/collectSend 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.

Insights (tenant-scoped reads) endpoints
MethodPathReturns
GET/api/v1/orgs/:orgId/projects/:projectId/insights/sessionsSession list
GET/api/v1/orgs/:orgId/projects/:projectId/insights/scenesDistinct scenes
GET/api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/pointerPointer heatmap bins
GET/api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/cameraCamera (view-direction) heatmap bins
GET/api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/world3D world (click) heatmap bins
GET/api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/gaze3D gaze (look-at) heatmap bins
GET/api/v1/orgs/:orgId/projects/:projectId/insights/heatmaps/positionFloor-plan camera-position bins
GET/api/v1/orgs/:orgId/projects/:projectId/insights/meshes/topMost-interacted meshes
GET/api/v1/orgs/:orgId/projects/:projectId/insights/perfPerformance summary
GET/api/v1/orgs/:orgId/projects/:projectId/insights/perf/dailyPer-day performance series
GET/api/v1/orgs/:orgId/projects/:projectId/insights/perf/distributionFPS distribution (p05/p50/p95)
GET/api/v1/orgs/:orgId/projects/:projectId/insights/perf/histogramFPS histogram bins
GET/api/v1/orgs/:orgId/projects/:projectId/insights/perf/frame-timeFrame-time percentiles (ms)
GET/api/v1/orgs/:orgId/projects/:projectId/insights/perf/jankJank rate
GET/api/v1/orgs/:orgId/projects/:projectId/insights/perf/by-deviceFPS by device class
GET/api/v1/orgs/:orgId/projects/:projectId/insights/perf/by-sceneFPS by scene
GET/api/v1/orgs/:orgId/projects/:projectId/insights/perf/resourcesGPU/memory footprint percentiles
POST/api/v1/orgs/:orgId/projects/:projectId/insights/batchResolve 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.

Replay and live endpoints
MethodPathReturns
GET/api/v1/orgs/:orgId/projects/:projectId/sessions/:sessionId/replayOrdered events of one session, as NDJSON
GET/api/v1/orgs/:orgId/projects/:projectId/live/presenceActive sessions (SSE)
GET/api/v1/orgs/:orgId/projects/:projectId/live/streamMinimal live event projection (SSE)
GET/api/v1/orgs/:orgId/projects/:projectId/live/sessions/:sessionIdLive-follow tail of one session (SSE)

Operational

Unauthenticated; served by every API instance.

Operational endpoints
MethodPathReturns
GET/healthLiveness
GET/readyReadiness (backing store reachable)
GET/openapi.jsonGenerated OpenAPI 3 document