> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 吊销 API 密钥

> 按 ID 永久删除一个 API 密钥。吊销后，该密钥将无法再用于认证请求。

使用此接口立即吊销一个 API 密钥。一旦删除，任何使用该密钥的请求都会收到认证错误。

## 接口

```http theme={null}
DELETE /v1/api-keys/{id}
```

## 认证

传递 `Authorization: Bearer <api-key>` 或 `Authorization: ApiKey <key>` 之一。

## 路径参数

<ParamField path="id" type="string" required>
  API 密钥标识符。
</ParamField>

## 响应

成功时返回 `204 No Content`。

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://agent.example.com/v1/api-keys/key_01E \
    -H "Authorization: Bearer <api-key>"
  ```
</RequestExample>

<ResponseExample>
  ```json 204 theme={null}
  ```
</ResponseExample>
