Revoke a key immediately
DELETE
/api/v1/api-keys/{id}
const url = 'http://localhost:11044/api/v1/api-keys/example';const options = {method: 'DELETE', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
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:11044/api/v1/api-keys/example \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Key id (16 hex characters), as id in the list or mint response. 404 when the caller has no key with that id
Responses
Section titled “Responses”OK
Media typeapplication/json
object
Example generated
{}
