> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agents.kolena.com/llms.txt
> Use this file to discover all available pages before exploring further.

# client.api_key

## `create`

```python theme={null}
create(
    name: str, expiration_days: Optional[int] = None
) -> ClientApiKeyCreateResponse
```

Create a new API key.

**Parameters:**

| Name | Type | Description | Default |
| - | - | - | - |
| `name` | `str` | The name of the API key | *required* |
| `expiration_days` | `Optional[int]` | Optional number of days until the API key expires | `None` |

## `list`

```python theme={null}
list(
    page_number: int = 0, page_size: int = 50
) -> ClientApiKeyListResponse
```

Get a paginated list of API keys.

**Parameters:**

| Name | Type | Description | Default |
| - | - | - | - |
| `page_number` | `int` | Page number for pagination (default: 0) | `0` |
| `page_size` | `int` | Number of items per page (default: 50, max: 1000) | `50` |

## `get`

```python theme={null}
get(key_id: str) -> ApiKeyInfo
```

Get details of a specific API key.

**Parameters:**

| Name | Type | Description | Default |
| - | - | - | - |
| `key_id` | `str` | The ID of the API key | *required* |

## `delete`

```python theme={null}
delete(key_id: str) -> None
```

Delete an API key.

**Parameters:**

| Name | Type | Description | Default |
| - | - | - | - |
| `key_id` | `str` | The ID of the API key to delete | *required* |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.