---
title: "Disable an API key"
method: DELETE
path: "/keys/{keyId}"
tags: ["API Key Management"]
---

# Disable an API key

`DELETE /keys/{keyId}`

## Request

- Base URL: `https://api.rateapi.dev`
- URL: `https://api.rateapi.dev/keys/{keyId}`
- Auth: API key in header `X-API-Key`

Permanently disables an API key. This action cannot be undone. You can only disable your own API key.

**Authentication required**: Pass your API key in the `X-API-Key` header.

## Path parameters

- `keyId` string, required

## Response `200`

API key disabled successfully

- object
  - `message` string, required: Human-readable detail about this result.

## Other responses

- `401`: Missing or invalid API key
- `403`: Not authorized to delete this key
- `429`: Rate limit exceeded
- `500`: Internal server error

---

[API](https://skmtc.dev/rateapi/apis/rate-api.md) · [All operations](https://skmtc.dev/rateapi/apis/rate-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rateapi/apis/rate-api/revisions/06a6db76995f?raw)
