---
title: "Create User Api Key"
method: POST
path: "/api/users/me/api-keys"
tags: ["users"]
---

# Create User Api Key

`POST /api/users/me/api-keys`

## Request

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

Create a new API key for the current user
Returns the full key - this is the ONLY time it will be shown

## Headers

- `x-api-key` string, nullable
- `authorization` string, nullable

## Request body

- CreateAPIKeyRequest
  - `name` string

## Response `200`

Successful Response

- APIKeyCreatedResponse
  - `id` string, required
  - `name` string, required
  - `api_key` string, required
  - `key_prefix` string, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
