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

# Admin API

> Tenant, API key, and retention cleanup routes.

# Admin API

Admin routes require the configured admin key.

## Create or update tenant

```http theme={null}
POST /v1/admin/tenants
```

## Create API key

```http theme={null}
POST /v1/admin/api-keys
```

The raw API key is returned once.

## Run retention cleanup

```http theme={null}
POST /v1/admin/retention/run
```

Dry run:

```json theme={null}
{
  "apply": false
}
```

Apply deletion:

```json theme={null}
{
  "apply": true
}
```
