メインコンテンツへスキップ
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 は先頭に付けないでください。
削除後、そのキーは model リクエストに使用できなくなります。レスポンスは、削除が成功したかどうかのみを示します。 id パスパラメータは、List API keys が返す数値のキー 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.

:

""