---
title: "创建 API Key"
method: POST
path: "/api/core/common/api-keys"
tags: ["core/apikey", "coreApikey"]
---

# 创建 API Key

`POST /api/core/common/api-keys`

创建新的 API Key

## Request body

- ApiKeyCreateReq
  - `name` string, required
  - `permission` string
  - `usageType` string
  - `keyType` string
  - `resourceKeys` string[]
  - `expireTime` integer

## Response `200`

A successful response.

- object
  - `code` integer
  - `msg` string
  - `data` Envelope
    - `code` integer, required
    - `msg` string, required
    - `data` object

---

[API](https://skmtc.net/freezonex/apis/untitled-api.md) · [All operations](https://skmtc.net/freezonex/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freezonex/untitled-api/revisions/e5f616b215c8/schema)
