---
title: "APIキーを失効させる（Web / IDトークンのみ）"
method: DELETE
path: "/api/v1/api-keys/{keyId}"
tags: ["api-keys"]
---

# APIキーを失効させる（Web / IDトークンのみ）

`DELETE /api/v1/api-keys/{keyId}`

## Request

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

## Path parameters

- `keyId` string, required

## Response `200`

失効成功

- object
  - `revoked` boolean

## Other responses

- `401`: 未認証（code: unauthenticated）
- `404`: キーが見つからない（code: not_found）

---

[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)
