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.

Embed
Preview of the card
<a href="https://lucidace.com/help/notebooks-health-scores-accessibility"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/1ea9e7ff-820a-430a-b631-ea815cd19941/social-card.svg?v=3e7ae33eec8b" alt="Notebooks, subscriptions, health scores and accessibility reports" width="600" height="315"></a>

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_version answers 409 with 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}/shares and DELETE /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 with show_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}/test sends a test delivery. POST /subscriptions/schedule-preview shows the next run times for a schedule. GET /subscriptions/slack-channels lists 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}: target is the number of events in the window that earns the full weight.

  • window_days sets the window. entity is persons or {"groups": {"index": n}}.

  • healthy_at and at_risk_at set 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, lte and is_set, a weight per rule and an overall fit_weight.

  • Routes: GET/POST /health-scores, GET/PUT/DELETE /health-scores/{id} and POST /health-scores/{id}/run to 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 daily trend;

  • 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).

Updated