---
title: "Stop Recording Episode"
method: POST
path: "/recording/stop"
tags: ["recording"]
---

# Stop Recording Episode

`POST /recording/stop`

Stop the recording of the episode. The data is saved to disk to the user home directory, in the `phosphobot` folder.

## Request body

- RecordingStopRequest — Request to stop the recording of the episode.
  - `save` boolean — Whether to save the episode to disk. Defaults to True.

## Response `200`

Successful Response

- RecordingStopResponse — Response when the recording is stopped. The episode is saved in the given path.
  - `episode_folder_path` string, nullable, required — Path to the folder where the episode is saved.
  - `episode_index` integer, nullable, required — Index of the recorded episode in the dataset.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/phospho/apis/fastapi.md) · [All operations](https://skmtc.dev/phospho/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/phospho/fastapi/revisions/93e83588fc02/schema)
