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

# Revoke Api Key Endpoint

`DELETE /api/settings/api-keys/{key_id}`

## Request

- Base URL: `https://api.thebetterhire.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thebetterhire.ai/api/settings/api-keys/{key_id}`
- Auth: HTTP bearer

Revoke immediately. Soft-delete, so usage history survives — on a
leaked key that history is the only record of what it did.

## Path parameters

- `key_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api.md) · [All operations](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/revisions/c8ad03e900ea?raw)
