# List config

URL: https://docs.hanzo.ai/docs/openapi/kms/get-kms-config

> Returns the runtime configuration for the KMS console.

`GET /v1/kms/config`

> [KMS →](https://docs.hanzo.ai/docs/openapi/kms) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                        |
| ------------- | -------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/kms/config`   |
| **Method**    | `GET`                                  |
| **Operation** | `get_kms_config`                       |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY` |

Returns the runtime configuration for the KMS console.

What the console needs before anyone has signed in: the brand, the OIDC issuer
it authenticates against, the API base for this subsystem and the path of the
login exchange.

Public on purpose, and it holds nothing sensitive — it is deliberately kept
under this subsystem's own namespace rather than under an admin prefix, so a
gateway that admin-gates the admin routes cannot break the console's
legitimate pre-login fetch.

## Request

`GET /v1/kms/config` takes no parameters and no body — the credential is the whole request.

## Response

| Status    | Body            | Meaning |
| --------- | --------------- | ------- |
| `200`     | kms.kmsConfig   | ok      |
| `default` | problem-details | refused |

`200` body — 4 fields.

| Field       | In   | Type   | Always | Description                                                                   |
| ----------- | ---- | ------ | ------ | ----------------------------------------------------------------------------- |
| `apiBase`   | body | string | —      | APIBase is this subsystem's own prefix, `/v1/kms`.                            |
| `brand`     | body | string | —      | Brand is the deployment's brand, so the console renders as the right product. |
| `issuer`    | body | string | —      | Issuer is the OIDC issuer the console authenticates against.                  |
| `loginPath` | body | string | —      | LoginPath is the credential exchange's address.                               |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo kms config
```

**SDK**

**.ts**

```ts
import { Configuration, KmsApi } from 'hanzoai';

const api = new KmsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getKmsConfig();
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import KmsApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = KmsApi(client).get_kms_config()
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.KmsAPI.GetKmsConfig(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, kms_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = kms_api::get_kms_config(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.KmsApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new KmsApi(client).getKmsConfig();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/kms/config \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

Tool `kms`, op `get_kms_config` — POST the JSON-RPC envelope to `https://api.hanzo.ai/v1/mcp`.

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "kms",
         "arguments": {
           "op": "get_kms_config",
           "input": {}
         }
       }
     }'
```

---

[KMS API](https://docs.hanzo.ai/docs/openapi/kms) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
