> ## 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.

# recording.stopped

> Emitted when recording stops.

## Event Properties

| Field | Value |
| - | - |
| `event` | `"recording.stopped"` |
| `confidential` | `boolean` |
| `payload` | `object` |

> [tab] Public Payload
>
> | Field | Type | Description |
> | - | - | - |
> | `duration` | `number` | Duration of the recording session before pause |
> | `interactionId` | `string` | Unique interaction identifier |
> | `interactionState` | `InteractionState` | Current state of the interaction |
>
> #### Example (Public Payload)
>
> ```json theme={null}
> {
>   "event": "recording.stopped",
>   "confidential": false,
>   "payload": {
>     "duration": 12,
>     "interactionId": "int_123",
>     "interactionState": "ongoing"
>   }
> }
> ```

> [tab] Confidential Payload
>
> | Field | Type | Description |
> | - | - | - |
> | `duration` | `number` | Duration of the recording session before pause |
> | `interaction` | `ExternalInteraction` | Interaction context including transcripts, documents, and facts |
>
> > [accordion] interaction object properties
> >
> > | Field | Type | Description |
> > | - | - | - |
> > | `id` | `string` | Unique interaction identifier |
> > | `title` | `string \| null` | Interaction title |
> > | `state` | `InteractionState` | Current state of the interaction |
> > | `startedAt` | `string (ISO 8601 date)` | When the interaction started (ISO 8601 date string) |
> > | `transcriptCount` | `number` | Number of transcripts in the interaction |
> > | `documentCount` | `number` | Number of documents in the interaction |
> > | `facts` | `Fact[]` | Facts extracted during the interaction |
> >
> > **Fact properties:**
> >
> > | Field | Type | Description |
> > | - | - | - |
> > | `id` | `string` | Unique fact identifier |
> > | `text` | `string` | Fact text content |
> > | `group` | `string` | Fact group/category name |
> > | `source` | `"core" \| "system" \| "user"` | Source of the fact: core (AI extracted), system, or user |
> > | `isDiscarded` | `boolean` | Whether the fact has been discarded |
>
> #### Example (Confidential Payload)
>
> ```json theme={null}
> {
>   "event": "recording.stopped",
>   "confidential": true,
>   "payload": {
>     "duration": 12,
>     "interaction": {
>       "id": "int_123",
>       "title": "Visit",
>       "state": "ongoing",
>       "startedAt": "2024-01-01T00:00:00.000+00:00",
>       "transcriptCount": 0,
>       "documentCount": 0,
>       "facts": []
>     }
>   }
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.