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

# Delete Api Key

`DELETE /api/keys/{key_id}`

Delete (revoke) an API key.

Requires: JWT token (session cookie or Authorization header)

Path parameters:
    key_id: The ID of the API key to delete

Returns:
    204 No Content on success

Raises:
    404: If key not found or not owned by user

## Path parameters

- `key_id` integer, required

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `abf76937a751` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/api/keys/:key_id/delete.md)

---

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