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

# Deactivate Api Key

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

Deactivate an API key immediately (also clears Redis cache).

## Path parameters

- `key_id` string, required

## Response `204`

Successful Response

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/trytrata/apis/fastapi.md) · [All operations](https://skmtc.dev/trytrata/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trytrata/fastapi/revisions/89fec75ff598/schema)
