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

# Create Api Key

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

## Request

- Base URL: `https://api.superdocs.app`
- URL: `https://api.superdocs.app/v1/users/me/api-keys`
- Auth: HTTP bearer

Create a new API key for the current user.

The raw key is returned ONCE in the response. It cannot be retrieved again.

## Request body

- CreateApiKeyRequest: Create a new API key.
  - `name` string, required: A label for this key (e.g., 'My App', 'CI Pipeline').

## Response `201`

Successful Response

- CreateApiKeyResponse: Newly created API key. The raw key is shown only once — save it immediately.
  - `id` string, required: Key identifier (UUID). Use this to revoke the key later.
  - `name` string, required: Label you assigned to this key.
  - `key` string, required: The full API key (sk_... format). Copy this now — it cannot be retrieved again.
  - `key_prefix` string, required: First 7 characters of the key (e.g., 'sk_a1b2') for identification.
  - `created_at` string, required: ISO 8601 timestamp when the key was created.

## Other responses

- `422`: Validation Error

---

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