---
title: "Create replay session"
method: POST
path: "/api/v1/projects/{projectId}/replay"
tags: ["Event Time Machine"]
---

# Create replay session

`POST /api/v1/projects/{projectId}/replay`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/projects/{projectId}/replay`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Start async replay of events matching the criteria

## Path parameters

- `projectId` string, uuid, required

## Request body

- ReplayRequest
  - `fromDate` string, date-time, required
  - `toDate` string, date-time, required
  - `eventType` string
  - `endpointId` string, uuid
  - `sourceStatus` 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILED' | 'DLQ' | 'CANCELLED'

## Response `201`

Replay session created and processing started

---

[API](https://skmtc.dev/railhook/apis/railhook-api.md) · [All operations](https://skmtc.dev/railhook/apis/railhook-api/llms.txt) · [OpenAPI document](https://skmtc.dev/railhook/apis/railhook-api/revisions/4e2c76dfc33d?raw)
