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

> TypeScript SDK reference for the Certificates resource

## createCertificate

`POST /v1/certificates` — Upload Certificate

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

## listCertificates

`GET /v1/certificates` — List Certificates

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

## deleteCertificate

`DELETE /v1/certificates/{name}` — Delete Certificate

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