---
title: "APIキー発行（Web / IDトークンのみ）"
method: POST
path: "/api/v1/api-keys"
tags: ["api-keys"]
---

# APIキー発行（Web / IDトークンのみ）

`POST /api/v1/api-keys`

## Request

- Base URL: `https://app.yukkurigen.com`
- URL: `https://app.yukkurigen.com/api/v1/api-keys`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Response `201`

発行（平文は一度だけ返る）

## Other responses

- `400`: リクエスト不正（code: validation_error）
- `401`: 未認証（code: unauthenticated）
- `403`: 権限不足（code: insufficient_scope / forbidden）

## Changes

- **2026-10-20** `ba5f36b016da`: 15 warning, 9 info
  - added the new `already_subscribed` enum value to the `code` response property for the response status `400`
  - added the new `already_subscribed` enum value to the `code` response property for the response status `401`
  - added the new `already_subscribed` enum value to the `code` response property for the response status `403`
  - added the new `render_not_paid` enum value to the `code` response property for the response status `400`
  - …20 more

[Operation history](https://skmtc.dev/yukkurigen/apis/yukkurigen-ai-operated-api/changes/api/v1/api-keys/post.md)

---

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