---
title: "Delete API Key"
method: DELETE
path: "/api_keys/{id}"
tags: ["API Keys"]
---

# Delete API Key

`DELETE /api_keys/{id}`

Permanently revokes an API key; requests using its secret stop authenticating immediately. Default and agent-backend keys cannot be deleted.

## Response `200`

api key deleted

- object
  - `deleted` boolean, required — Always `true`: the key was revoked.
  - `id` string, required — The ID of the revoked key.

## Other responses

- `400` — Invalid Parameters
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Resource not found

## Changes

- **2026-08-07** `f1020c3ecda4` — 4 info
  - added the optional property `error/code` to the response with the `400` status
  - added the optional property `error/code` to the response with the `401` status
  - added the optional property `error/code` to the response with the `403` status
  - added the optional property `error/code` to the response with the `404` status
- **2026-07-26** `60bbb4a6ffbc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/whop/apis/whop-api/changes/api_keys/:id/delete.md)

---

[API](https://skmtc.dev/whop/apis/whop-api.md) · [All operations](https://skmtc.dev/whop/apis/whop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/whop/whop-api/revisions/1b5d50d09479/schema)
