الانتقال إلى المحتوى الرئيسي
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.

استخدم نقطة النهاية هذه لحذف مفتاح API باستخدام المعرّف الخاص به.
أنشئ personal access token من Console → Personal Settings، ثم أرسله كقيمة Authorization header الخام. لا تضع بادئة Bearer قبله.
بعد الحذف، لن يعود بالإمكان استخدام المفتاح لطلبات model. تؤكد الاستجابة فقط ما إذا كانت عملية الحذف قد نجحت. معامل المسار id هو معرّف المفتاح الرقمي الذي يتم إرجاعه بواسطة List API keys. حذف المفتاح دائم لتلك القيمة الخاصة بالمفتاح؛ أنشئ مفتاح 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.

مثال:

""