---
title: "Revoke Api Key"
method: DELETE
path: "/api/api-keys/{key_id}"
tags: ["API Keys"]
---

# Revoke Api Key

`DELETE /api/api-keys/{key_id}`

## Request

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

Soft-delete one of the caller's keys (sets `revoked_at`).

Someone else's key id and a nonexistent one both 404 — the owner scope lives
in the query, so this route cannot tell them apart and must not try.

## Path parameters

- `key_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api.md) · [All operations](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pcbgenerator/apis/pcb-stackup-generator-api/revisions/b6084b3ace32?raw)
