---
title: "Create a user API key"
method: POST
path: "/api-keys"
tags: ["Authentication"]
---

# Create a user API key

`POST /api-keys`

Optional idempotency key. Reuse the same key only for an identical request; successful responses are replayable for 24 hours.

## Headers

- `Idempotency-Key` string

## Response `201`

Created user API key, including the one-time secret.

## Other responses

- `400` — Invalid JSON body, name, scope, or expiresInDays
- `401` — Sign-in required
- `409` — Active user API key limit reached
- `503` — Idempotency storage or response replay is temporarily unavailable.

## Changes

- **2026-08-31** `ef21361a36e6` — 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
- **2026-08-25** `c3a92b6b6909` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/releases/apis/releases-api/changes/api-keys/post.md)

---

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