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

> SDK reference for the Recordings resource (TypeScript & Python)

## Pause Session Recording

`POST /v1/sessions/{session_id}/recordings/pause` — pauseRecording

<CodeGroup>
  ```typescript 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);
  ```

  ```python Python theme={null}
  from anchorbrowser import Anchorbrowser

  # ANCHORBROWSER_API_KEY is read from the environment by default;
  # set it explicitly with Anchorbrowser(api_key="your-api-key")
  client = Anchorbrowser()

  result = client.recordings.pause_recording(
      "your-session-id",
  )
  print(result)
  ```
</CodeGroup>

## Resume Session Recording

`POST /v1/sessions/{session_id}/recordings/resume` — resumeRecording

<CodeGroup>
  ```typescript 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);
  ```

  ```python Python theme={null}
  from anchorbrowser import Anchorbrowser

  # ANCHORBROWSER_API_KEY is read from the environment by default;
  # set it explicitly with Anchorbrowser(api_key="your-api-key")
  client = Anchorbrowser()

  result = client.recordings.resume_recording(
      "your-session-id",
  )
  print(result)
  ```
</CodeGroup>

## List Session Recordings

`GET /v1/sessions/{session_id}/recordings` — listRecordings

<CodeGroup>
  ```typescript 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);
  ```

  ```python Python theme={null}
  from anchorbrowser import Anchorbrowser

  # ANCHORBROWSER_API_KEY is read from the environment by default;
  # set it explicitly with Anchorbrowser(api_key="your-api-key")
  client = Anchorbrowser()

  result = client.recordings.list_recordings(
      "your-session-id",
  )
  print(result)
  ```
</CodeGroup>

## Get Session Recording

`GET /v1/sessions/{session_id}/recordings/primary/fetch` — fetchPrimaryRecording

<CodeGroup>
  ```typescript 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);
  ```

  ```python Python theme={null}
  from anchorbrowser import Anchorbrowser

  # ANCHORBROWSER_API_KEY is read from the environment by default;
  # set it explicitly with Anchorbrowser(api_key="your-api-key")
  client = Anchorbrowser()

  result = client.recordings.fetch_primary_recording(
      "your-session-id",
  )
  print(result)
  ```
</CodeGroup>

## Delete Session Recording

`DELETE /v1/sessions/{session_id}/recordings/{recording_id}` — deleteRecording

<CodeGroup>
  ```typescript 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);
  ```

  ```python Python theme={null}
  from anchorbrowser import Anchorbrowser

  # ANCHORBROWSER_API_KEY is read from the environment by default;
  # set it explicitly with Anchorbrowser(api_key="your-api-key")
  client = Anchorbrowser()

  result = client.recordings.delete_recording(
      "your-session-id",
      "your-recording-id",
  )
  print(result)
  ```
</CodeGroup>
