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

# stopRecording()

> Reference for the Embedded API stopRecording() method.

Use `stopRecording()` to end recording within the current embedded session.

<Info>
  Applies to Web Component, Window API, and PostMessage. Examples on this page
  use the Web Component API shape.
</Info>

## Usage

```typescript theme={null}
await api.stopRecording();
```

## Prerequisites

* Recording must already be active.

## Input validation

* None

## Possible errors

* `NOT_READY`: Not in an active recording session.
* `INTERNAL_ERROR`: Failed to disconnect from the recording service.

## Returns

`void`

## Related reference

* [API Reference Overview](/assistant/api-reference)
* [startRecording()](/assistant/api/start-recording)
* [getStatus()](/assistant/api/get-status)
