---
title: "Revoke Api Key"
method: DELETE
path: "/v1/portal/api-keys/{key_id}"
tags: ["Portal"]
---

# Revoke Api Key

`DELETE /v1/portal/api-keys/{key_id}`

## Request

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

Revoke (delete) a SINGLE API key by key_id — tenant-scoped, non-destructive to other keys.

The per-key counterpart to /rotate-key (which deletes every key). Scoped by tenant_id, so a key_id
belonging to another tenant simply matches no row → 404 (never touches, never reveals it). Evicts
the auth cache so the revoked key stops resolving within the 60s TTL, not only in the DB.

## Path parameters

- `key_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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