---
title: "Revoke an API key"
method: DELETE
path: "/v1/auth/keys/{key_id}"
tags: ["auth"]
---

# Revoke an API key

`DELETE /v1/auth/keys/{key_id}`

## Request

- Base URL: `https://mcp.techmanual.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://mcp.techmanual.ai/v1/auth/keys/{key_id}`
- Auth: none declared

Deactivate an API key by ID. Requires the admin key.

## Path parameters

- `key_id` integer, required

## Headers

- `authorization` string

## Response `200`

Successful Response

- APIKeyOut: Response schema for API key metadata (key value is masked).
  - `id` integer, required
  - `name` string, required
  - `key_prefix` string, required
  - `is_active` boolean, required
  - `created_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/techmanual/apis/techmanual-ai-api.md) · [All operations](https://skmtc.dev/techmanual/apis/techmanual-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/techmanual/apis/techmanual-ai-api/revisions/97e0fde41040?raw)
