Skip to main content

Session Replay

Session replay stores a visitor’s web session — a DOM snapshot plus the sequence of on-page interactions — against a conversation so a support agent can play it back in the inbox later. The widget-side capture is opt-in: recording only starts when the visitor explicitly consents and the widget POSTs to the session-replay start endpoint, and the visitor can stop at any time. Your capture integration supplies that POST; installing the native chat widget or starting a conversation alone does not begin recording, because the native widget does not currently include a built-in session-replay recorder. It’s the asynchronous counterpart to live co-browse: co-browse is watching in real time, session replay is watching after the fact. This page covers the operator side — retention and size limits, playback in the inbox, purging recordings, and configuring what gets masked before it’s ever uploaded — plus the capture-side requests your integration sends. Capture is opt-in: recording only starts when the visitor explicitly consents and a capture integration POSTs to the session-replay start endpoint; the visitor can stop at any time. For the full request/response schema, see the Session Replay API reference.

Retention and limits

There is no automatic TTL: a recording persists until you purge it. Deleting the conversation also removes its stored recording, so conversation retention and recording retention move together. Storage is bounded per recording, in two tiers:
  • Inline head — the first 5,000 events (up to 4 MB) are kept on the conversation row for instant preview. Long sessions don’t truncate: once the head fills, every further batch spills to durable object storage as an ordered chunk, and playback reassembles head plus chunks into the full stream.
  • Abuse backstop — a recording is hard-capped at roughly 1 GiB of serialized events (5 million events). Only a pathological or hostile recorder can reach it; when it trips, the recording’s status becomes capped and its truncated flag is set to true. Normal multi-hour support sessions stay well below the ceiling.
Each upload batch may carry at most 500 events — larger batches are rejected by the widget capture endpoint. There is no per-org cap or configurable retention policy today; purging is explicit via the API. To gauge usage, the list endpoint returns total_size_bytes and total_event_count per recording, so you can spot the conversations consuming the most storage.

Watching a recording in the inbox

In the dashboard, open the Inbox. Web-chat conversations that have a stored recording show a session-replay banner above the message thread. The banner lists the conversation’s recordings (page URL, start time, event count), and pressing play opens the rrweb player inline. Agents with conversations:read can list and play recordings; the banner’s delete control (purge) and the masking settings are restricted to owner, admin, or developer roles with conversations:write. The banner only appears on web/chat conversations — SMS, WhatsApp, voice, and email threads can never carry a widget recording, so the player surface is gated to where a recording can exist. Visibility isn’t gated on conversation status: replay is meant to be watched after the session, often on a closed thread. The masking policy also has a dashboard surface: Settings → Channels → Native chat includes a session-replay masking panel backed by the same GET/PUT /session-replay/privacy API — the toggles and selector lists below map one-to-one to the panel’s controls.

How recordings are scored for friction

On top of playback, Insights → High-friction Sessions ranks your recorded chat-widget sessions by a frustration score so an agent knows which recordings to watch first. Four signals are derived from each recording: rage clicks (3+ fast clicks in the same spot) and error clicks (a click followed by an error) count 3 points each; dead clicks (a click that changes nothing) and u-turns (open a page and go straight back) count 2 points each. Sessions with a score of 0 are not listed. The ranked list scores the start of each recording (the inline head) for a fast read, while opening a session analyzes the full recording — so the score shown in the replay view can be higher than the list’s. This reading is expanded in the High-friction sessions guide.

Failure modes to expect

  • Nothing recorded. Capture is opt-in, not automatic. The native chat widget does not currently start a recording; an integration must first obtain the visitor’s consent and POST to the session-replay start endpoint. If no session-replay row appears, capture was never started (or the visitor stopped it) — confirm that the opt-in and start request occurred before assuming data was lost.
  • Playback shows only the start of a long session. The recording offloaded its tail to durable storage and reassembly failed (a transient storage read error). The API serves the inline head rather than failing the request; retry, and the full stream usually returns. Persistent head-only responses on offloaded recordings (offloaded: true in the summary) are worth a support ticket.
  • A capped / truncated recording. The abuse backstop fired. Treat it as a signal that the recorder or page is emitting far more events than a real session produces — for example a page script in a rapid DOM-mutation loop.
  • Purging during erasure. DELETE /session-replay/{conversationId} removes the recording’s durable chunks first, then drops the row pointer, and writes an audit entry (session_replay.deleted). The conversation and messages are untouched. If the conversation itself is later deleted, any still-attached recording goes with it — purge recordings first when the erasure request covers the recording but not the thread.

Start a recording and upload events

Capture runs on the visitor’s device. After the visitor explicitly consents, your integration opens a recording and streams event batches to the widget capture surface. These endpoints sit on the versionless /widget prefix (the same one the web SDKs use) and authenticate with the visitor’s widget session token as a Bearer header — the token the embedded widget receives at bootstrap. There is no org API key on this side, and a token that doesn’t match the conversation’s visitor gets a 401. Start the recording once consent is in hand:
start_url is optional page context for the agent; the response’s recording_id is the handle your integration keeps for the session. Re-POSTing while a recording is still open reuses it instead of opening a second one. While the visitor browses, upload rrweb events in batches of at most 500 — larger batches are rejected:
The response reports the running totals. event_count / size_bytes describe the inline head; total_event_count / total_size_bytes describe the whole recording once batches start spilling past the head. If a batch’s response ever shows "status": "capped" with "truncated": true, the abuse backstop fired — stop the recorder, there is nothing further to upload. When the visitor leaves or withdraws consent, POST /widget/conversations/{conversationId}/session-replay/end finalizes the recording (status becomes ended); the call is idempotent.

List and inspect recordings

The operator surface authenticates with your org API key. List recent recordings to see which conversations carry replays and how much storage each consumes:
Summaries carry the head counts plus the full-recording totals (total_event_count, total_size_bytes) and the offloaded / truncated flags — enough to rank storage consumers without shipping event payloads. Fetch one recording for playback. The player consumes the inline events head, then every blob_chunks entry in seq order, to reassemble the full stream:
events holds the inline head (first 5,000 events, shown abbreviated); everything after it lives in blob_chunks, reassembled in seq order. offloaded: true with truncated: false is the healthy long-session shape.
If no recording exists for the conversation, session_replay comes back null rather than an error.

Privacy posture and compliance

Masking happens in the visitor’s browser, before any event is uploaded — masked content never leaves the page. The default posture is fail-closed: every input is masked and built-in PII heuristics are on, until you explicitly relax them.
The policy is account-wide and applies to new capture sessions from the next widget bootstrap — it doesn’t retroactively change recordings you’ve already stored. Set block_selectors on your checkout or account-settings pages before you rely on session replay in production. Session replay is a tenant-owned control, and which knobs matter depends on the compliance surface your organization answers to:
  • GDPR / DSAR — session recordings of EU visitors are personal data. Your DPO should review the masking policy (what leaves the browser), the purge endpoint (your right-to-erasure mechanism), and the audit entries both produce. See GDPR posture guide and DSAR handling for how erasure requests map to Orbit’s purge surfaces.
  • Sector controls (PCI, health data) — if your pages render card data or regulated identifiers, rely on block_selectors for the hard “never serialized” cut rather than text masking, and document the selectors you set as part of your own control evidence.

Purge recordings for erasure

Purging is your right-to-erasure mechanism: it removes the recording’s durable chunks, drops the row pointer, and writes the session_replay.deleted audit entry. The conversation and its messages are left intact, and the call is idempotent — purging an already-purged conversation still returns 200.
A follow-up GET /api/v1/session-replay/conv_8b2c4d6e1f now returns "session_replay": null — that read is your erasure confirmation. The masking policy is account configuration, not recording data, so it survives every purge: GET /api/v1/session-replay/privacy still returns exactly the policy the next capture bootstrap will ship, with nothing held back on read.
If no policy has ever been stored, the read returns the fail-closed default instead — everything masked, heuristics on — so an unconfigured account never captures un-redacted input.

Verifying capture

To verify a custom capture integration, use a test conversation and a visitor who has explicitly opted in:
  1. Open the test page and start a conversation. Installing the native chat widget and starting a conversation do not start session replay.
  2. After recording consent, have the integration send the start request shown in Start a recording and upload events and upload batches while you click, scroll, or navigate.
  3. Call GET /api/v1/session-replay (or open the conversation in the Inbox). A row for your test conversation with a growing total_event_count means the integration is sending capture data.
  4. Fetch GET /api/v1/session-replay/{conversationId} and check that session_replay.status is recording (or ended once the visitor leaves) rather than capped.
An empty list after step 3 means no recording was started or event data was not uploaded. Confirm the visitor opted in, the integration sent the start request, and event uploads succeeded — capture starts only when the widget posts the opt-in start action.

Endpoints

See also