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

# Replay API

> Replay testing API reference

Replay testing and comparison API.

***

## Create Replay Set

```
POST /replay/capture
```

**Body:**

```json theme={null}
{
  "name": "Pre-prompt-change",
  "filters": {
    "service": "chat-api",
    "timeRange": "24h",
    "sampleSize": 100
  }
}
```

***

## Execute Replay

```
POST /replay/run
```

**Body:**

```json theme={null}
{
  "replayId": "replay_001",
  "mode": "production"
}
```

***

## Get Results

```
GET /replay/:id/diff
```

**Response:**

```json theme={null}
{
  "replayId": "replay_001",
  "totalTraces": 100,
  "comparisons": [{
    "traceId": "trace_001",
    "similarity": 0.95,
    "costDiff": 0.002
  }]
}
```
