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

---

[API](https://skmtc.net/whop/apis/whop-api.md) · [All operations](https://skmtc.net/whop/apis/whop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/whop/whop-api/versions/866821546d67/schema)
