Skip to content

API Key API ​

由 scripts/generate-api-docs.ts 自动生成 —— 请勿手改 共 3 个端点

GET /api-keys ​

列出我的 API Key(不含明文与哈希)

响应 ​

状态码说明
200

POST /api-keys ​

创建 API Key(明文只返回一次)

请求体 ​

json
{
  "$ref": "#/components/schemas/CreateApiKeyDto"
}

响应 ​

状态码说明
201

DELETE /api-keys/{keyId} ​

吊销 API Key(立即生效)

请求参数 ​

参数名位置类型必填说明
keyIdpathstring✅

响应 ​

状态码说明
200

Released under the MIT License.