Skip to main content
Replay testing and comparison API.

Create Replay Set

POST /replay/capture
Body:
{
  "name": "Pre-prompt-change",
  "filters": {
    "service": "chat-api",
    "timeRange": "24h",
    "sampleSize": 100
  }
}

Execute Replay

POST /replay/run
Body:
{
  "replayId": "replay_001",
  "mode": "production"
}

Get Results

GET /replay/:id/diff
Response:
{
  "replayId": "replay_001",
  "totalTraces": 100,
  "comparisons": [{
    "traceId": "trace_001",
    "similarity": 0.95,
    "costDiff": 0.002
  }]
}