KPI aggregate for the sessions list stats strip
VIEWER+. Returns four KPIs scoped to the caller's active org: total sessions, total duration, average duration (rounded), active today (created in the last 24 h). Single SQL round-trip via `$queryRaw` with conditional aggregation.
/api/sessions/summaryVIEWER+. Returns four KPIs scoped to the caller's active org: total sessions, total duration, average duration (rounded), active today (created in the last 24 h). Single SQL round-trip via $queryRaw with conditional aggregation.
Response Body
application/json
curl -X GET "https://loading/api/sessions/summary"{
"totalSessions": 1247,
"totalDuration": 6834120,
"avgDuration": 5481,
"activeToday": 42
}Typed timeline markers extracted from the event stream GET
VIEWER+. Returns marker rows ordered by timestamp. Optional `?kind=` filter (e.g. `url`, `identity`).
Cancel a session — SDK `stop()` teardown path POST
Public-key authenticated. Hard-deletes the session row matching `(projectId, externalId)`. Quiet no-op when no row exists — cancellation can race with the first ingest batch arriving. The `(projectId, externalId)` scoping prevents one project's key from cancelling another project's session.