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

# Revoke an API key by ID

`DELETE /api/keys/{key_id}`

## Request

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

Revoke an API key (DELETE). CSRF-protected.

## Path parameters

- `key_id` integer, required

## Response `200`

Successful Response

- ApiKeysRevokeResponse: `DELETE /api/keys/{key_id}` — revoke an API key. Run 19 F4 backfill 2026-05-12.
  - `status` string, nullable: 'ok' on success.
  - `error` string, nullable: Failure message.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api.md) · [All operations](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/oxfordledge/apis/oxford-ledge-api/revisions/e832a1260f0b?raw)
