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

# Profiles

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

## Create Profile

`POST /v1/profiles` — createProfile

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, Profiles } 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 Profiles.createProfile({
    body: {
      name: 'string'
    }
  });
  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.profiles.create_profile(
      name="string",
  )
  print(result)
  ```
</CodeGroup>

## List Profiles

`GET /v1/profiles` — listProfiles

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, Profiles } 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 Profiles.listProfiles();
  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.profiles.list_profiles()
  print(result)
  ```
</CodeGroup>

## Get Profile

`GET /v1/profiles/{name}` — getProfile

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, Profiles } 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 Profiles.getProfile({
    path: {
      name: 'your-name'
    }
  });
  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.profiles.get_profile(
      "your-name",
  )
  print(result)
  ```
</CodeGroup>

## Delete Profile

`DELETE /v1/profiles/{name}` — deleteProfile

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, Profiles } 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 Profiles.deleteProfile({
    path: {
      name: 'your-name'
    }
  });
  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.profiles.delete_profile(
      "your-name",
  )
  print(result)
  ```
</CodeGroup>
