Returns the runtime configuration for the KMS console.
Returns the runtime configuration for the KMS console.
GET /v1/kms/config
| 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 | kmsConfig | ok |
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.
Examples
hanzo kms configimport { Configuration, KmsApi } from 'hanzoai';
const api = new KmsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getKmsConfig();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()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.KmsAPI.GetKmsConfig(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::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?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.KmsApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new KmsApi(client).getKmsConfig();curl https://api.hanzo.ai/v1/kms/config \
-H "Authorization: Bearer $HANZO_API_KEY"Tool kms, op get_kms_config — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
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": {}
}
}
}'How is this guide?