Skip to main content
DELETE
cURL
使用此端點可依 ID 刪除一個 API key。
Console → Personal Settings 產生 personal access token,然後將它作為原始 Authorization 標頭值傳送。請勿在前面加上 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.

範例:

""