Revoke an API key
DELETE
/v1/api-keys/{id}
const url = 'http://localhost:8080/v1/api-keys/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8080/v1/api-keys/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Revokes the key so it can no longer be exchanged for a token; the revocation is recorded as an auth event. Administrators only. 404 for an unknown key, 409 when it is already revoked.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”No Content