---
title: "Revoke an API key"
method: POST
path: "/admin/keys/revoke"
tags: ["admin"]
---

# Revoke an API key

`POST /admin/keys/revoke`

## Request

- Base URL: `https://api.qeaas.eu`
- URL: `https://api.qeaas.eu/admin/keys/revoke`
- Auth: API key in header `X-Admin-Token`

AC-8: instant revocation -- `require_api_key` reads the row fresh every request.

## Request body

- AdminRevokeRequest
  - `key_hash` string, required

## Response `200`

Successful Response

- AdminRevokeResponse
  - `key_hash` string, required
  - `revoked` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qeaas/apis/quantum-entropy-as-a-service.md) · [All operations](https://skmtc.dev/qeaas/apis/quantum-entropy-as-a-service/llms.txt) · [OpenAPI document](https://skmtc.dev/qeaas/apis/quantum-entropy-as-a-service/revisions/f0670c8db625?raw)
