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

# Applications

> TypeScript SDK reference for the Applications resource

## createApplication

`POST /v1/applications` — Create Application

```typescript theme={null}
import { client, Applications } 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 Applications.createApplication({
  body: {
    source: 'https://example.com'
  }
});
console.log(result);
```

## listApplications

`GET /v1/applications` — List Applications

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

## getApplication

`GET /v1/applications/{applicationId}` — Get Application

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

## deleteApplication

`DELETE /v1/applications/{applicationId}` — Delete Application

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

## listApplicationIdentities

`GET /v1/applications/{applicationId}/identities` — List Application Identities

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

## listAuthFlows

`GET /v1/applications/{applicationId}/auth-flows` — List Application Authentication Flows

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

## createAuthFlow

`POST /v1/applications/{applicationId}/auth-flows` — Create Authentication Flow

```typescript theme={null}
import { client, Applications } 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 Applications.createAuthFlow({
  path: {
    applicationId: 'your-applicationId'
  },
  body: {
    name: 'string',
    methods: ['username_password']
  }
});
console.log(result);
```

## updateAuthFlow

`PATCH /v1/applications/{applicationId}/auth-flows/{authFlowId}` — Update Authentication Flow

```typescript theme={null}
import { client, Applications } 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 Applications.updateAuthFlow({
  path: {
    applicationId: 'your-applicationId',
    authFlowId: 'your-authFlowId'
  },
  body: {}
});
console.log(result);
```

## deleteAuthFlow

`DELETE /v1/applications/{applicationId}/auth-flows/{authFlowId}` — Delete Authentication Flow

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

## createIdentityToken

`POST /v1/applications/{applicationId}/tokens` — Create Identity Token

```typescript theme={null}
import { client, Applications } 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 Applications.createIdentityToken({
  path: {
    applicationId: 'your-applicationId'
  },
  body: {
    callbackUrl: 'https://example.com/callback'
  }
});
console.log(result);
```
