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

# Certificates

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

## Upload Certificate

`POST /v1/certificates` — createCertificate

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, Certificates } 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 Certificates.createCertificate({
    body: {
      name: 'string',
      file: new File(['file content'], 'file.txt')
    }
  });
  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.certificates.create_certificate(
      name="string",
      file=("file.txt", b"file content"),
  )
  print(result)
  ```
</CodeGroup>

## List Certificates

`GET /v1/certificates` — listCertificates

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, Certificates } 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 Certificates.listCertificates();
  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.certificates.list_certificates()
  print(result)
  ```
</CodeGroup>

## Delete Certificate

`DELETE /v1/certificates/{name}` — deleteCertificate

<CodeGroup>
  ```typescript TypeScript theme={null}
  import { client, Certificates } 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 Certificates.deleteCertificate({
    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.certificates.delete_certificate(
      "your-name",
  )
  print(result)
  ```
</CodeGroup>
