> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# replay

> Get presigned URLs for the session replay

> [!TIP]
>
> Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.

**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

**wait** `bool` (default: True)

If True (default), poll until the replay is ready.

**timeout** `float` (default: 240.0)

Maximum seconds to wait (default 240).

**poll\_interval** `float` (default: 5.0)

Seconds between polling attempts (default 5).

## Returns

[`ReplayResponse`](https://docs.notte.cc/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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.