---
title: "Create My Api Key"
method: POST
path: "/api/me/api-keys"
tags: ["user-settings"]
---

# Create My Api Key

`POST /api/me/api-keys`

Create a new personal API key. The full key is returned only once.

## Request body

- UserApiKeyCreateRequest
  - `name` string, required
  - `scopes` string, nullable
  - `expires_at` string, date-time, nullable

## Response `201`

Successful Response

- UserApiKeyCreateResponse — Returned only at creation time -- includes the full key.
  - `id` string, required
  - `name` string, required
  - `key` string, required
  - `key_prefix` string, required
  - `scopes` string, nullable
  - `expires_at` string, date-time, nullable
  - `created_at` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-03-22** `6dc2d6f33d44` — 6 breaking, 1 warning, 14 info
  - the request property `expires_at` became not nullable
  - the request property `scopes` became not nullable
  - the `name` request property's minLength was increased from `0` to `1`
  - response property `expires_at` list-of-types was widened by adding types `null` to media type `application/json` of response `201`
  - …17 more

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

---

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