跳轉到主要內容
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 金鑰。
Console → Personal Settings 產生 personal access token,然後將其作為原始的 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.

範例:

""