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

# Recording events

> Events for recording lifecycle — start, stop, error, upload completion, and raw data delivery.

Paid plans only

***

## recording-started

✓ Prebuilt✓ Custom

Fires for all participants when a recording starts.

**action** `string`

Always `"recording-started"`.

**callClientId** `string`

The ID of the call client instance that emitted this event.

**instanceId** `string`

Unique ID for this recording instance.

**type** `string`

The recording type: `'local'`, `'cloud'`, `'cloud-audio-only'`, or `'raw-tracks'`.

**local** `boolean`

Present only for `local` and `cloud` recordings, and only for the participant who started the recording.

**recordingId** `string`

Present only for `cloud` recordings. The ID of the resulting recording.

**startedBy** `string`

Present for `cloud`, `cloud-audio-only`, and `raw-tracks` recordings. The `session_id` of the participant who started the recording.

**layout** `DailyStreamingLayoutConfig`

Present only for `cloud` recordings. The layout configuration. See [`DailyStreamingLayoutConfig`](https://docs.daily.co/reference/daily-js/types/daily-streaming-layout-config) for the full shape.

> [!NOTE]
>
> For `local` recordings, the participant who started the recording may receive additional fields, but other participants receive only `action`, `instanceId`, and `callClientId`.

```json theme={null}
// Example event object (cloud recording)
{
  "action": "recording-started",
  "instanceId": "00000000-0000-4000-8000-000000000000",
  "callClientId": "16149871051110.5607513282111183",
  "local": true,
  "recordingId": "cab2be92-1551-42d8-bcdf-11fe7bd81923",
  "startedBy": "1c6d5474-b133-4993-c943-f1ffdbb38cad",
  "type": "cloud"
}
```

***

## recording-stopped

✓ Prebuilt✓ Custom

Fires for all participants when a recording stops.

**action** `string`

Always `"recording-stopped"`.

**callClientId** `string`

The ID of the call client instance that emitted this event.

**instanceId** `string`

ID of the recording instance that stopped.

```json theme={null}
// Example event object
{
  "action": "recording-stopped",
  "instanceId": "00000000-0000-4000-8000-000000000000",
  "callClientId": "16149871715780.8113693509425934"
}
```

***

## recording-error

✓ Prebuilt✓ Custom

Fires when a recording error occurs.

**action** `string`

Always `"recording-error"`.

**callClientId** `string`

The ID of the call client instance that emitted this event.

**instanceId** `string`

ID of the recording instance that errored.

**errorMsg** `string`

A human-readable description of the error.

```json theme={null}
// Example event object
{
  "action": "recording-error",
  "instanceId": "00000000-0000-4000-8000-000000000000",
  "errorMsg": "recording failed",
  "callClientId": "16149871715780.8113693509425934"
}
```

***

## See also

> [card] Types
>
> * [DailyStreamingLayoutConfig](https://docs.daily.co/reference/daily-js/types/daily-streaming-layout-config.md)

> [card] Methods
>
> * [startRecording()](https://docs.daily.co/reference/daily-js/instance-methods/start-recording.md)
> * [stopRecording()](https://docs.daily.co/reference/daily-js/instance-methods/stop-recording.md)
> * [updateRecording()](https://docs.daily.co/reference/daily-js/instance-methods/update-recording.md)

> [card] Guides
>
> * [Events](https://docs.daily.co/docs/daily-js/concepts/events.md)
> * [Recording overview](https://docs.daily.co/docs/guides/features/recording)
> * [daily-js: Recording](https://docs.daily.co/docs/daily-js/features/recording.md)


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