---
title: "Create Api Key"
method: POST
path: "/api/api-keys"
tags: ["API Keys"]
---

# Create Api Key

`POST /api/api-keys`

## Request

- Base URL: `https://api.pcbgenerator.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pcbgenerator.com/api/api-keys`
- Auth: HTTP bearer

Mint a key. The full secret is in THIS response and in no other, ever.

⛔ There is no second endpoint that can return it and no recovery path — the
database holds only the digest. A caller who loses it mints a new key.

## Request body

- ApiKeyCreateRequest
  - `name` string, required: Human label, e.g. "nightly CI agent"

## Response `201`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api.md) · [All operations](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/revisions/b6084b3ace32?raw)
