---
title: "Revokes a key. Revoked keys fail authentication immediately; revocation is idempotent."
method: DELETE
path: "/admin/keys/{id}"
tags: ["admin"]
---

# Revokes a key. Revoked keys fail authentication immediately; revocation is idempotent.

`DELETE /admin/keys/{id}`

## Request

- Base URL: `https://api.mapmap.ai`
- URL: `https://api.mapmap.ai/admin/keys/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `204`

Key revoked (or already revoked)

## Other responses

- `401`: Missing or wrong admin token
- `404`: Unknown key id

---

[API](https://skmtc.dev/mapmap/apis/sn-gateway.md) · [All operations](https://skmtc.dev/mapmap/apis/sn-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/mapmap/apis/sn-gateway/revisions/2293be8b4c38?raw)
