Revoke an API key
DELETE
/auth/api-keys/{id}
const url = 'https://api.krakenkey.io/auth/api-keys/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.krakenkey.io/auth/api-keys/example \ --header 'Authorization: Bearer <token>'The key stops working immediately. It stays listed with includeRevoked for 30 days.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
API key UUID
Responses
Section titled “Responses”API key revoked
Unauthorized
API key not found or already revoked