Skip to main content
DELETE
cURL
استخدم نقطة النهاية هذه لحذف مفتاح API حسب المعرّف.
أنشئ personal access token من Console → Personal Settings، ثم أرسله كقيمة خام لترويسة Authorization. لا تسبقها بـ Bearer.
بعد الحذف، لن يعود بالإمكان استخدام المفتاح لطلبات النموذج. تؤكد الاستجابة فقط ما إذا كانت عملية الحذف قد نجحت. معامل المسار 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.

مثال:

""