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

# Stop Recording Episode

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



## OpenAPI

````yaml post /recording/stop
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /recording/stop:
    post:
      tags:
        - recording
      summary: Stop Recording Episode
      description: >-
        Stop the recording of the episode. The data is saved to disk to the user
        home directory, in the `phosphobot` folder.
      operationId: stop_recording_episode_recording_stop_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecordingStopRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordingStopResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    RecordingStopRequest:
      description: Request to stop the recording of the episode.
      properties:
        save:
          default: true
          description: Whether to save the episode to disk. Defaults to True.
          title: Save
          type: boolean
      title: RecordingStopRequest
      type: object
    RecordingStopResponse:
      description: >-
        Response when the recording is stopped. The episode is saved in the
        given path.
      properties:
        episode_folder_path:
          anyOf:
            - type: string
            - type: 'null'
          description: Path to the folder where the episode is saved.
          title: Episode Folder Path
        episode_index:
          anyOf:
            - type: integer
            - type: 'null'
          description: Index of the recorded episode in the dataset.
          title: Episode Index
      required:
        - episode_folder_path
        - episode_index
      title: RecordingStopResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````