---
title: "Delete Api Key"
method: DELETE
path: "/v1/organizations/users/{user_email}/api-keys/{key_name}"
tags: ["Organization API Keys"]
---

# Delete Api Key

`DELETE /v1/organizations/users/{user_email}/api-keys/{key_name}`

## Request

- Base URL: `https://api.mixpeek.com`
- URL: `https://api.mixpeek.com/v1/organizations/users/{user_email}/api-keys/{key_name}`
- Auth: HTTP bearer

Revoke an API key.

🔒 The "admin-key" is protected and cannot be deleted.

Studio session keys can be revoked here by name or key_id; list them with
include_session_keys=true.

Refuses when a live published app still embeds this key, naming the app.
A 2026-06-03 revocation killed 2 published apps for seven weeks
because nothing in this path looked for references and the call reported
success.

## Path parameters

- `user_email` string, required
- `key_name` string, required

## Query parameters

- `force` boolean: Revoke even when a live published app still embeds this key. Without it, the call is refused and names the apps that would break. Use force for a COMPROMISED key, where breaking them is the point.

## Response `200`

Successful Response

- GenericSuccessResponse: GenericSuccessResponse.
  - `message` string
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

## Changes

- **2026-10-09** `61a175e8eb9a`: 1 warning, 5 info
  - removed the optional property `detail` from the response with the `422` status
  - added the non-success response with the status `429`
  - added the non-success response with the status `503`
  - added the optional property `success` to the response with the `422` status
  - …2 more
- **2026-08-09** `5d4c905106b4`: 1 info
  - the endpoint scheme security `BearerAuth` was added to the API
- **2026-08-04** `9603dfdab463`: 1 info
  - added the new optional `query` request parameter `force`

[Operation history](https://skmtc.dev/mixpeek/apis/mixpeek-api/changes/v1/organizations/users/:user_email/api-keys/:key_name/delete.md)

---

[API](https://skmtc.dev/mixpeek/apis/mixpeek-api.md) - [All operations](https://skmtc.dev/mixpeek/apis/mixpeek-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mixpeek/apis/mixpeek-api/revisions/790bc16455f6?raw)
