Skip to main content
DELETE
cURL
使用此端点按 ID 删除一个 API 密钥。
Console → Personal Settings 生成个人访问令牌,然后将其作为原始 Authorization 请求头值发送。不要添加 Bearer 前缀。
删除后,该密钥将无法再用于模型请求。响应仅确认删除是否成功。 id 路径参数是在 列出 API 密钥 中返回的数字型密钥 ID。删除某个密钥后,该密钥值将被永久失效;如果集成再次需要凭证,请创建一个新的 API 密钥。

授权

Authorization
string
header
必填

Personal access token copied from CometAPI Console > Personal Settings. Send the raw token value; do not prefix it with Bearer.

路径参数

id
integer
必填

Numeric API key ID returned by the list endpoint. Deleting this ID permanently invalidates that key value.

响应

200 - application/json

Delete result.

success
boolean
必填

Whether the delete operation succeeded.

示例:

true

message
string
必填

Backend status message. The value is usually an empty string on success.

示例:

""