Saltar para o conteúdo principal
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 este endpoint para excluir uma chave de API por ID.
Gere um personal access token em Console → Personal Settings e, em seguida, envie-o como o valor bruto do cabeçalho Authorization. Não o prefixe com Bearer.
Após a exclusão, a chave não poderá mais ser usada para solicitações de modelo. A resposta apenas confirma se a exclusão foi bem-sucedida. O parâmetro de caminho id é o ID numérico da chave retornado por List API keys. Excluir uma chave é permanente para esse valor de chave; crie uma nova chave de API se a integração precisar de credenciais novamente.

Autorizações

Authorization
string
header
obrigatório

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

Parâmetros de caminho

id
integer
obrigatório

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

Resposta

200 - application/json

Delete result.

success
boolean
obrigatório

Whether the delete operation succeeded.

Exemplo:

true

message
string
obrigatório

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

Exemplo:

""