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

# Identities

> TypeScript SDK reference for the Identities resource

## createIdentity

`POST /v1/identities` — Create Identity

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

## getIdentity

`GET /v1/identities/{identityId}` — Get Identity

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

## updateIdentity

`PUT /v1/identities/{identityId}` — Update Identity

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

## deleteIdentity

`DELETE /v1/identities/{identityId}` — Delete Identity

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