---
title: "Create API key for a tenant (admin only)"
method: POST
path: "/v1/api-keys"
---

# Create API key for a tenant (admin only)

`POST /v1/api-keys`

## Request

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

## Headers

- `X-API-KEY` string, nullable

## Request body

- ApiKeyCreateRequest
  - `tenant_id` string, required
  - `label` string, nullable

## Response `201`

Successful Response

- ApiKeyCreateResponse
  - `key` string, required
  - `tenant_id` string, required
  - `label` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/clichefactory/apis/aio-server.md) · [All operations](https://skmtc.dev/clichefactory/apis/aio-server/llms.txt) · [OpenAPI document](https://skmtc.dev/clichefactory/apis/aio-server/revisions/9bd59f9bbb31?raw)
