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

# Revoke Api Key

`DELETE /v1/api_key/{key_id}`

## Request

- Base URL: `https://api.linktodm.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.linktodm.com/v1/api_key/{key_id}`
- Auth: HTTP bearer

Revoke a key. Takes effect on the next public-API request.

## Path parameters

- `key_id` integer, required

## Response `200`

Successful Response

- ApiKeyResponse
  - `id` integer, required
  - `name` string, required
  - `key_prefix` string, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/linktodm/apis/salesmorph.md) - [All operations](https://skmtc.dev/linktodm/apis/salesmorph/llms.txt) - [OpenAPI document](https://skmtc.dev/linktodm/apis/salesmorph/revisions/4af0ad5dbe92?raw)
