Skip to main content
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.

Use this endpoint to delete an API key by ID.
Generate a personal access token at Console → Personal Settings, then send it as the raw Authorization header value. Do not prefix it with Bearer.
After deletion, the key can no longer be used for model requests. The response only confirms whether the deletion succeeded. The id path parameter is the numeric key ID returned by List API keys. Deleting a key is permanent for that key value; create a new API key if the integration needs credentials again.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

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

Response

200 - application/json

Delete result.

success
boolean
required

Whether the delete operation succeeded.

Example:

true

message
string
required

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

Example:

""