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

# AgentAccess

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

## Agent Access guide

`GET /v1/agent-access` — getAgentAccessGuide

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, AgentAccess } 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 AgentAccess.getAgentAccessGuide();
  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.agent_access.get_agent_access_guide()
  print(result)
  ```
</CodeGroup>

## Create Agent Access project

`POST /v1/agent-access` — createAgentAccessProject

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, AgentAccess } 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 AgentAccess.createAgentAccessProject({
    body: {
      token: 'string',
      answer: '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.agent_access.create_agent_access_project(
      token="string",
      answer="string",
  )
  print(result)
  ```
</CodeGroup>

## Get Agent Access challenge

`GET /v1/agent-access/challenge` — getAgentAccessChallenge

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, AgentAccess } 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 AgentAccess.getAgentAccessChallenge();
  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.agent_access.get_agent_access_challenge()
  print(result)
  ```
</CodeGroup>

## Agent Access challenge data

`GET /v1/agent-access/appendix/{appendixRef}` — getAgentAccessAppendix

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, AgentAccess } 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 AgentAccess.getAgentAccessAppendix({
    path: {
      appendixRef: 'your-appendixRef'
    }
  });
  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.agent_access.get_agent_access_appendix(
      "your-appendix-ref",
  )
  print(result)
  ```
</CodeGroup>
