---
title: "Issue My Key"
method: POST
path: "/tenant/keys"
tags: ["tenant"]
---

# Issue My Key

`POST /tenant/keys`

## Request

- Base URL: `https://api.agent4.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agent4.io/tenant/keys`
- Auth: none declared

为本租户生成一把新 API Key（明文仅此刻返回一次）。

## Request body

- KeyIssueIn
  - `name` string

## Response `201`

Successful Response

- IssuedKeyOut
  - `id` string, required
  - `api_key` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agent4/apis/chatagent-platform.md) · [All operations](https://skmtc.dev/agent4/apis/chatagent-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/agent4/apis/chatagent-platform/revisions/18e58f082ce3?raw)
