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

# Revoke Api Key

`DELETE /v1/apikeys/{key_id}`

## Request

- Base URL: `https://api.lumethic.com`
- URL: `https://api.lumethic.com/v1/apikeys/{key_id}`
- Auth: `OAuth2PasswordBearer` (a scheme the document does not define)

Revoke an API key, permanently disabling it.

Immediately invalidates the specified API key. Any requests using this key will be
rejected after revocation. This action cannot be undone — create a new key if needed.

**Authentication Required**: Valid JWT token or API key

**Path Parameters**:
- **key_id**: UUID of the API key to revoke

**Status Codes**:
- 204: Key revoked successfully (no response body)
- 404: Key not found or you do not have permission to revoke it

## Path parameters

- `key_id` string, uuid, required

## Headers

- `X-API-Key` string, nullable

## Response `204`

Key revoked successfully

## Other responses

- `404`: API key not found
- `422`: Validation Error

---

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