---
title: "Creates a named API key; the key is returned once (Roles: user)"
method: POST
path: "/user/api-keys"
tags: ["API Keys"]
---

# Creates a named API key; the key is returned once (Roles: user)

`POST /user/api-keys`

## Request body

- CreateApiKeyPayload
  - `name` string, required

## Response `200`

Success

- CreatedApiKey
  - `id` string
  - `name` string
  - `source` string
  - `last4` string
  - `created_at` integer
  - `api_key` string — The key. Shown only in this response.

## Other responses

- `402` — The plan has no API access
- `409` — Too many keys

## Changes

- **2026-09-26** `9fb1b21a5bec` — 1 info
  - endpoint added

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

---

[API](https://skmtc.dev/ludo/apis/ludo-ai-api.md) · [All operations](https://skmtc.dev/ludo/apis/ludo-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ludo/apis/ludo-ai-api/revisions/a6d8dcc39b12?raw)
