---
title: "Create a new replay session in INIT state."
method: POST
path: "/tracer/replay-session/"
tags: ["tracer"]
---

# Create a new replay session in INIT state.

`POST /tracer/replay-session/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/tracer/replay-session/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Request body:
    project_id: uuid (required)
    replay_type: "session" or "trace" (default: "session")
    ids: list of uuids (required if select_all=false)
    select_all: bool (default: false)

## Request body

- CreateReplaySession
  - `project_id` string, uuid, required
  - `replay_type` 'session' | 'trace'
  - `ids` string[]
  - `select_all` boolean

## Response `201`

Created

- CreateReplaySession
  - `project_id` string, uuid, required
  - `replay_type` 'session' | 'trace'
  - `ids` string[]
  - `select_all` boolean

## Other responses

- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
