Przejdź do głównej treści
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.

Użyj tego endpointu, aby usunąć klucz API według ID.
Wygeneruj personal access token w Console → Personal Settings, a następnie wyślij go jako surową wartość nagłówka Authorization. Nie poprzedzaj go prefiksem Bearer.
Po usunięciu klucz nie może już być używany do żądań modeli. Odpowiedź potwierdza jedynie, czy usunięcie się powiodło. Parametr ścieżki id to numeryczne ID klucza zwrócone przez List API keys. Usunięcie klucza jest trwałe dla tej wartości klucza; utwórz nowy klucz API, jeśli integracja ponownie potrzebuje poświadczeń.

Autoryzacje

Authorization
string
header
wymagane

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

Parametry ścieżki

id
integer
wymagane

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

Odpowiedź

200 - application/json

Delete result.

success
boolean
wymagane

Whether the delete operation succeeded.

Przykład:

true

message
string
wymagane

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

Przykład:

""