Chuyển đến nội dung chính
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.

Sử dụng endpoint này để xóa một API key theo ID.
Tạo personal access token tại Console → Personal Settings, sau đó gửi nó dưới dạng giá trị thô của header Authorization. Không thêm tiền tố Bearer.
Sau khi xóa, key này sẽ không thể tiếp tục được dùng cho các request model. Response chỉ xác nhận việc xóa có thành công hay không. Tham số đường dẫn id là ID key dạng số được trả về bởi Liệt kê API key. Việc xóa một key là vĩnh viễn đối với giá trị key đó; hãy tạo một API key mới nếu integration cần lại thông tin xác thực.

Ủy quyền

Authorization
string
header
bắt buộc

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

Tham số đường dẫn

id
integer
bắt buộc

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

Phản hồi

200 - application/json

Delete result.

success
boolean
bắt buộc

Whether the delete operation succeeded.

Ví dụ:

true

message
string
bắt buộc

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

Ví dụ:

""