---
title: "Generate a new API key"
method: POST
path: "/api/v1/operator/keys"
tags: ["operator"]
---

# Generate a new API key

`POST /api/v1/operator/keys`

## Request body

- CreateKeyDto
  - `name` string, required — Human-readable label for this API key

## Response `200`

- ApiKeyCreatedDto
  - `plainKey` string, required — Plain-text key — shown ONCE, never returned again
  - `keyId` string, required
  - `keyPrefix` string, required

---

[API](https://skmtc.net/humbleaf/apis/agentchain-prior-api.md) · [All operations](https://skmtc.net/humbleaf/apis/agentchain-prior-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humbleaf/agentchain-prior-api/versions/33dd194c5572/schema)
