---
title: "Delete Api Key"
method: DELETE
path: "/delete-api-key"
tags: ["api-keys"]
---

# Delete Api Key

`DELETE /delete-api-key`

Delete an API key belonging to the caller's active team.

Keys are team-bound and shared, but managing them is gated by the team
role matrix: only members holding ``CREATE_API_KEYS`` (owner, admin,
editor) may delete a team key. Viewer and billing members are rejected
with 403.

## Request body

- DeleteAPIKeyRequest — Request model for deleting an API key.
  - `key_id` string, uuid, required — ID of the API key to delete

## Response `200`

Successful Response

- SuccessResponse — Generic success response.
  - `success` boolean
  - `message` string, nullable
  - `data` object, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-24** `1cffaad2a921` — 1 breaking, 1 warning, 1 info
  - the `key_id` request property format changed from no format to `uuid`
  - removed the optional property `detail` from the response with the `422` status
  - added the required property `error` to the response with the `422` status

[Change history](https://skmtc.dev/pioneer/apis/brain-api/changes/delete-api-key/delete.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) · [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/1cffaad2a921?raw)
