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

# Extensions

> TypeScript SDK reference for the Extensions resource

## uploadExtension

`POST /v1/extensions` — Upload Extension

```typescript theme={null}
import { client, Extensions } 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 Extensions.uploadExtension({
  body: {
    name: 'string',
    file: new File(['file content'], 'file.txt')
  }
});
console.log(result);
```

## listExtensions

`GET /v1/extensions` — List Extensions

```typescript theme={null}
import { client, Extensions } 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 Extensions.listExtensions();
console.log(result);
```

## getExtension

`GET /v1/extensions/{id}` — Get Extension Details

```typescript theme={null}
import { client, Extensions } 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 Extensions.getExtension({
  path: {
    id: 'your-id'
  }
});
console.log(result);
```

## deleteExtension

`DELETE /v1/extensions/{id}` — Delete Extension

```typescript theme={null}
import { client, Extensions } 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 Extensions.deleteExtension({
  path: {
    id: 'your-id'
  }
});
console.log(result);
```
