authAdminRevokeApiKey
DELETE
/auth/admin/apikeys/{id}
const url = 'http://localhost:8300/auth/admin/apikeys/example';const options = { method: 'DELETE', headers: {'x-api-key': '<x-api-key>', 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 http://localhost:8300/auth/admin/apikeys/example \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
API key id (UUID; malformed = 404)
Responses
Section titled “Responses”Revoked
Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Valid token without the admin role: “admin role required”
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}Unknown or already revoked key
Media typeapplication/json
object
detail
required
string
Example generated
{ "detail": "example"}