Ana içeriğe atla
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.

Bir API anahtarını ID ile silmek için bu endpoint’i kullanın.
Console → Personal Settings üzerinden bir personal access token oluşturun, ardından bunu ham Authorization header değeri olarak gönderin. Başına Bearer eklemeyin.
Silme işleminden sonra anahtar artık model istekleri için kullanılamaz. Yanıt yalnızca silme işleminin başarılı olup olmadığını doğrular. id path parametresi, API anahtarlarını listele tarafından döndürülen sayısal anahtar kimliğidir. Bir anahtarı silmek, o anahtar değeri için kalıcıdır; entegrasyonun yeniden kimlik bilgilerine ihtiyaç duyması durumunda yeni bir API anahtarı oluşturun.

Yetkilendirmeler

Authorization
string
header
gerekli

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

Yol Parametreleri

id
integer
gerekli

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

Yanıt

200 - application/json

Delete result.

success
boolean
gerekli

Whether the delete operation succeeded.

Örnek:

true

message
string
gerekli

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

Örnek:

""