Langsung ke konten utama
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.

Gunakan endpoint ini untuk menghapus API key berdasarkan ID.
Buat personal access token di Console → Personal Settings, lalu kirimkan sebagai nilai header Authorization mentah. Jangan awali dengan Bearer.
Setelah dihapus, key tersebut tidak lagi dapat digunakan untuk permintaan model. Respons hanya mengonfirmasi apakah penghapusan berhasil. Parameter path id adalah ID key numerik yang dikembalikan oleh List API keys. Menghapus sebuah key bersifat permanen untuk nilai key tersebut; buat API key baru jika integrasi memerlukan kredensial lagi.

Otorisasi

Authorization
string
header
wajib

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

Parameter Path

id
integer
wajib

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

Respons

200 - application/json

Delete result.

success
boolean
wajib

Whether the delete operation succeeded.

Contoh:

true

message
string
wajib

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

Contoh:

""