---
title: "Create a platform API key"
method: POST
path: "/system/admin/api-keys"
tags: ["System Admin"]
---

# Create a platform API key

`POST /system/admin/api-keys`

Creates a capability-scoped key that may target any workspace through X-Tenant-ID. The plaintext token is returned once. Human SystemAdmin only.

## Request body

- InternalHandlerPlatformAPIKeyCreateRequest
  - `capabilities` string[]
  - `expires_at_unix` integer
  - `name` string

## Response `201`

Created

- object

---

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