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

# Create API Key

`POST /api/admin/api-keys`

Create a new API key for the project. The full key value is returned **only
once** in the response — store it securely.

Keys start with `lc_proj_` and are 64-character hex strings.

## Request body

- object
  - `name` string, required — A descriptive label for the key

## Response `201`

API key created

- object
  - `id` string
  - `name` string
  - `key` string — The full API key — shown only once
  - `createdAt` string, date-time

## Other responses

- `401` — Invalid or missing API key

---

[API](https://skmtc.dev/logclaw/apis/logclaw-api.md) · [All operations](https://skmtc.dev/logclaw/apis/logclaw-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/logclaw/logclaw-api/revisions/2e3308872959/schema)
