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

# Revoke an API key

`DELETE /api/keys/{prefix}`

## Request

- Base URL: `https://calc.engineer`
- URL: `https://calc.engineer/api/keys/{prefix}`
- Auth: `bearerAuth` (a scheme the document does not define)

Soft-delete an API key by prefix. Requires JWT auth.

## Path parameters

- `prefix` string, required

## Response `200`

Key revoked

## Other responses

- `401`: JWT auth required
- `404`: Key not found or already revoked

---

[API](https://skmtc.dev/calc/apis/calc-engineer-api.md) · [All operations](https://skmtc.dev/calc/apis/calc-engineer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calc/apis/calc-engineer-api/revisions/8830480ec488?raw)
