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

# Revoke an API key

`DELETE /v1/api-keys/{api_key_id}`

## Request

- Base URL: `https://api.naturali.ai`
- URL: `https://api.naturali.ai/v1/api-keys/{api_key_id}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.naturali.ai/authorize`, token URL `https://api.naturali.ai/token`, scopes: `mcp:access`)

Revokes an API key immediately. Subsequent use returns 401.

## Response `204`

API key revoked.

## Other responses

- `401`: Missing or invalid credentials.
- `403`: Authenticated, but not permitted to act on this key.
- `404`: The resource does not exist (existence is not leaked).

---

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