> For the complete documentation index, see [llms.txt](https://docs.digitalsamba.com/reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalsamba.com/reference/sdk/methods/addrecordingbookmark.md).

# addRecordingBookmark()

addRecordingBookmark(bookmark: string)

Adds a bookmark to the recording in progress, marking the current moment with the label you provide. It works exactly like the **Add bookmark** option in the room's recording menu.

```javascript
sambaFrame.addRecordingBookmark('Q&A starts');
```

Leading and trailing whitespace is trimmed from the label, which must then be 1 to 255 characters long.

{% hint style="info" %}
The bookmark is added only while a recording is in progress, recording bookmarks are enabled in the room settings, and the participant has the **recording** permission. Otherwise the call is refused and an [appError](/reference/sdk/events/apperror.md) is emitted (`not-allowed`, `forbidden-action` or `add-recording-bookmark`). Wait for the [recordingStarted](/reference/sdk/events/recordingstarted.md) event before calling this method.
{% endhint %}

{% hint style="info" %}
Available starting from `v0.0.58` of `@digitalsamba/embedded-sdk`.
{% endhint %}

**Sample use cases**:

* Mark agenda points as your application moves through them, such as the next topic, a new slide, or the start of Q\&A, so they are easy to find in the recording.

{% hint style="info" %}
**addRecordingBookmark** is often used together with the [startRecording](/reference/sdk/methods/startrecording.md) and [stopRecording](/reference/sdk/methods/stoprecording.md) methods.
{% endhint %}
