跳转到主要内容
DELETE
/
api
/
token
/
{id}
cURL
curl -X DELETE https://api.cometapi.com/api/token/1234 \
  -H "Authorization: your-access-token"
{
  "success": true,
  "message": ""
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

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

授权

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.

示例:

""