> ## Documentation Index
> Fetch the complete documentation index at: https://notte-experiment-visibility-md-links.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# replay

> Get presigned URLs for the session replay

**Example:**

```python theme={null}
replay = session.replay()
print(replay.mp4_url)  # Presigned URL for MP4 download
replay.download("session.mp4")
```

By default this polls until the replay is ready. Set `wait=False`
to fail immediately if the replay is not yet available.

## Parameters

<ParamField path="wait" type="bool" default="True">
  If True (default), poll until the replay is ready.
</ParamField>

<ParamField path="timeout" type="float" default="240.0">
  Maximum seconds to wait (default 120).
</ParamField>

<ParamField path="poll_interval" type="float" default="5.0">
  Seconds between polling attempts (default 2).
</ParamField>

## Returns

[`ReplayResponse`](/sdk-reference/misc/replayresponse.md): Presigned URLs for HLS playlist and MP4 download.

## Raises

* `ValueError`: If the session hasn't been started yet (no session\_id available).
* `TimeoutError`: If the replay does not become available within `timeout` seconds.
