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

# Revoke an API key

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

## Request

- Base URL: `https://api.engram.page`
- URL: `https://api.engram.page/api/api-keys/{id}`
- Auth: HTTP bearer

Permanently revokes the API key with the given UUID so it can no longer authenticate. Returns 400 for a malformed id and 404 when no such key belongs to the user.

## Path parameters

- `id` string, required

## Response `200`

Revoked

- DeletedFlag
  - `deleted` boolean, required

## Other responses

- `400`: Invalid id
- `404`: No such key

---

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