---
title: "Revoke an API key (cannot be undone)"
method: DELETE
path: "/me/api-keys/{key_id}"
tags: ["self-service"]
---

# Revoke an API key (cannot be undone)

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

## Request

- Base URL: `https://api.getmetacognition.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getmetacognition.com/me/api-keys/{key_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/metacognition/apis/tex-api/docs/me/api-keys/:key_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `key_id` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/metacognition/apis/tex-api.md) - [All operations](https://skmtc.dev/metacognition/apis/tex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metacognition/apis/tex-api/revisions/3bef47e50f2e?raw)
