> ## Documentation Index
> Fetch the complete documentation index at: https://chainlit-5-wd-prompt.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# User

> Create Read Update and Delete methods for User

## Create an User

```python
import os
from literalai import LiteralClient

client = LiteralClient(api_key=os.getenv("LITERAL_API_KEY"))
new_user = await client.api.create_user(identifier="John Doe")
```

<ParamField path="identifier" type="string" required>
  The identifier of the user in your system
</ParamField>

### Return type

<ResponseField name="user" type="User">
  Return the user
</ResponseField>

## Get an User

```python
user = await client.api.get_user(id="<USER_UUID>")
```

<ParamField path="id" type="uuid" required>
  The Literal id of the user
</ParamField>

### Return type

<ResponseField name="user" type="User">
  Return the user, can be None if the user does not exist
</ResponseField>

## Update an User

```python
updated_user = await client.api.update_user(id="<USER_UUID>", identifier="Jane Doe")
```

<ParamField path="id" type="uuid" required>
  The Literal id of the user
</ParamField>

<ParamField path="identifier" type="string">
  The identifier of the user in your system
</ParamField>

<ParamField path="metadata" type="dict">
  The metadata of the user
</ParamField>

### Return type

<ResponseField name="user" type="User">
  Return the user
</ResponseField>

## Delete an User

```python
user = await client.api.delete_user(id="<USER_UUID>")
```

<ParamField path="id" type="uuid" required>
  The Literal id of the user
</ParamField>
