---
title: "吊销 API Key / Revoke a key"
method: DELETE
path: "/v1/api-keys/{id}"
tags: ["Keys"]
---

# 吊销 API Key / Revoke a key

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

## Request

- Base URL: `https://api.musicsforyou.com`
- URL: `https://api.musicsforyou.com/v1/api-keys/{id}`
- Auth: OAuth 2 (authorization code, authorization URL `https://www.musicsforyou.com/oauth/authorize`, token URL `https://api.musicsforyou.com/oauth/token`, scopes: `music`)

## Path parameters

- `id` string, required

## Response `200`

OK

- SuccessResponse
  - `success` boolean, required

## Other responses

- `401`: 未登录或 Key 无效 / Not authenticated（LOGIN_REQUIRED、INVALID_API_KEY）
- `404`: 不存在 / Not found

---

[API](https://skmtc.dev/musicsforyou/apis/taoyuan-music-api.md) · [All operations](https://skmtc.dev/musicsforyou/apis/taoyuan-music-api/llms.txt) · [OpenAPI document](https://skmtc.dev/musicsforyou/apis/taoyuan-music-api/revisions/65b8919a4d82?raw)
