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

# Create API key

`POST /api-keys`

## Request body

- object
  - `name` string

## Response `201`

API key created

- object
  - `id` string, required
  - `fullKey` string, required
  - `name` string, required
  - `prefix` string, required
  - `createdAt` string, date-time, required

## Other responses

- `401` — Unauthenticated

## Changes

- **2026-04-08** `d40c57a05527` — 2 info
  - the endpoint scheme security `apiKey` was added to the API
  - the endpoint scheme security `sessionCookie` was removed from the API

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

---

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