Notebooks, subscriptions, health scores and accessibility reports
Write up findings in notebooks and share them, schedule email or Slack snapshots, score account health from usage, and find WCAG issues in recorded sessions.
Four smaller areas of the app, with their API routes. All routes are under /v1/projects/{project_id} and use a normal API key (see Account API keys). Schemas are in GET /v1/openapi.json.
Notebooks (collab)
A notebook is a document of ordered blocks (insights, lists of people, events, groups or cohorts, and text) with a version history.
GET/POST /notebooks,GET/PATCH/DELETE /notebooks/{id},GET /notebooks/{id}/versions.Saving with a stale
expected_versionanswers409with the detail "the notebook changed since version N; reload it and apply your edit again", so two editors do not overwrite each other.GET(a{data, next_cursor}page)/POST /notebooks/{id}/sharesandDELETE /notebooks/{id}/shares/{share_id}manage share links. A share is a token-gated, read-only public view that can also be embedded in an iframe. Recordings are replaced by a placeholder, query text is hidden unless the share opted in withshow_queries, insight blocks have person columns dropped, and lists of people, events, groups and cohorts appear only as aggregates without identities.
Dashboards and insights have their own share links; see Share links and exports.
Subscriptions
A subscription emails or posts to Slack a snapshot (a rendered table and a link) of an insight, a dashboard or the weekly recommendations digest, on a cron or a structured schedule.
GET/POST /subscriptions,GET/PATCH/DELETE /subscriptions/{id}.POST /subscriptions/{id}/testsends a test delivery.POST /subscriptions/schedule-previewshows the next run times for a schedule.GET /subscriptions/slack-channelslists channels to pick from.
Health scores
A health score is a named set of weighted usage signals, run on demand, for accounts (a group type) or for people.
A signal is
{event, weight, target}:targetis the number of events in the window that earns the full weight.window_dayssets the window.entityispersonsor{"groups": {"index": n}}.healthy_atandat_risk_atset the score thresholds for the labels.Optional fit rules add a fit component (ideal-customer-profile match) from a property, with operators
eq,neq,contains,gte,lteandis_set, aweightper rule and an overallfit_weight.Routes:
GET/POST /health-scores,GET/PUT/DELETE /health-scores/{id}andPOST /health-scores/{id}/runto compute the scores. Deleting removes the configuration only; events and people are untouched.
Accessibility
Recorded sessions are checked against WCAG rules in their DOM snapshots. GET /accessibility?from=&to= (optional url, impact, goal) returns:
summary: issues, pages, rules, counts by impact (critical,serious,moderate,minor) and the sessions and users affected;rules,pages,issues(page, rule and element selector, with a sample session and the offset into it so you can open the replay at that moment) and a dailytrend;with
goal, how many affected sessions converted.
Issues appear once replays with full snapshots are recorded. In the app you can file an issue to a connected tracker from a row; the issue links back to the replay moment (POST /replays/{session_id}/issues).