Skip to main content
Replays capture browser sessions as video recordings that you can view or download later. You have full control over when replays start and stop, allowing you to capture specific interactions or workflows.

Starting and stopping recordings

To start recording a browser session, use the replays API on an active browser:

Multiple recordings per session

You can create multiple replay recordings for a single browser session. Each recording gets a unique replay_id and can be started and stopped independently:

Downloading all replays

To access all replays for a browser session, list and access them via url or as downloads:

Embedding a replay

Set an iframe’s src to the replay_view_url returned when you start or list a replay. Give the iframe an explicit aspect ratio so the player keeps its shape while loading, and enable fullscreen playback. Merge the example’s frame-src sources into your existing Content Security Policy. Replace REPLAY_VIEW_URL with the URL returned by the API:
Use the recorded browser’s viewport ratio if it differs from 16 / 10. Treat replay URLs as sensitive.