---
title: "Revoke Api Key"
method: POST
path: "/api/v1/config/api-keys/{key_id}/revoke"
tags: ["api-keys"]
---

# Revoke Api Key

`POST /api/v1/config/api-keys/{key_id}/revoke`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/config/api-keys/{key_id}/revoke`
- Auth: none declared

Revoke an API key (soft delete, preserves audit trail).

Issue #112: Revoke by ID directly to avoid ambiguity with duplicate names.

## Path parameters

- `key_id` string, required: Public id of the API key (`akey_` + 22 base62 characters).

## Headers

- `authorization` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
