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

# Recordings

> TypeScript SDK reference for the Recordings resource

## pauseRecording

`POST /v1/sessions/{session_id}/recordings/pause` — Pause Session Recording

```typescript theme={null}
import { client, Recordings } from 'anchorbrowser';

// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });

const result = await Recordings.pauseRecording({
  path: {
    session_id: 'your-session-id'
  }
});
console.log(result);
```

## resumeRecording

`POST /v1/sessions/{session_id}/recordings/resume` — Resume Session Recording

```typescript theme={null}
import { client, Recordings } from 'anchorbrowser';

// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });

const result = await Recordings.resumeRecording({
  path: {
    session_id: 'your-session-id'
  }
});
console.log(result);
```

## listRecordings

`GET /v1/sessions/{session_id}/recordings` — List Session Recordings

```typescript theme={null}
import { client, Recordings } from 'anchorbrowser';

// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });

const result = await Recordings.listRecordings({
  path: {
    session_id: 'your-session-id'
  }
});
console.log(result);
```

## fetchPrimaryRecording

`GET /v1/sessions/{session_id}/recordings/primary/fetch` — Get Session Recording

```typescript theme={null}
import { client, Recordings } from 'anchorbrowser';

// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });

const result = await Recordings.fetchPrimaryRecording({
  path: {
    session_id: 'your-session-id'
  }
});
console.log(result);
```

## deleteRecording

`DELETE /v1/sessions/{session_id}/recordings/{recording_id}` — Delete Session Recording

```typescript theme={null}
import { client, Recordings } from 'anchorbrowser';

// ANCHORBROWSER_API_KEY is read from the environment by default;
// set it explicitly like this:
client.setConfig({ auth: () => 'your-api-key' });

const result = await Recordings.deleteRecording({
  path: {
    session_id: 'your-session-id',
    recording_id: 'your-recording-id'
  }
});
console.log(result);
```
