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

# Revoke Api Key

`DELETE /v1/keys/{key_id}`

## Request

- Base URL: `https://api.ctindex.io`
- URL: `https://api.ctindex.io/v1/keys/{key_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Revoke a key the caller owns by setting ``is_active=false``.

We refuse to revoke the key the caller is currently authenticating with —
otherwise the very next portal request would 403. The portal must rotate
first (issues a new key, then this endpoint can disable the old one).

## Path parameters

- `key_id` string, uuid, required

## Cookies

- `ctix_session` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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