---
title: "Revoke Api Key"
method: POST
path: "/api/admin/api-keys/{key_id}/revoke"
tags: ["admin"]
---

# Revoke Api Key

`POST /api/admin/api-keys/{key_id}/revoke`

## Request

- Base URL: `https://api.stellara.natlex.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stellara.natlex.it/api/admin/api-keys/{key_id}/revoke`
- Auth: HTTP bearer

Revoke an active key. Already-revoked / unknown ids are a 404 so the
caller can tell "nothing changed" from "done".

## Path parameters

- `key_id` integer, required

## Response `200`

Successful Response

- AdminApiKeyRevokeResponse
  - `id` integer, required
  - `key_prefix` string, required
  - `email` string, required
  - `status` string, required
  - `revoked_at` unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/natlex/apis/stellara-api.md) · [All operations](https://skmtc.dev/natlex/apis/stellara-api/llms.txt) · [OpenAPI document](https://skmtc.dev/natlex/apis/stellara-api/revisions/e576f046b61f?raw)
