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

# Revoke an API key

`DELETE /me/keys/{key_id}`

## Request

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

Sets revoked_at = now(). The key is immediately unusable.

## Path parameters

- `key_id` string, uuid, required

## Headers

- `X-API-Key` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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