---
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, 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

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/31dfe831e079/schema)
