---
title: "DELETE /v4/workspaces/{workspaceId}/api-keys/{id}"
method: DELETE
path: "/v4/workspaces/{workspaceId}/api-keys/{id}"
tags: ["Workspace API Keys"]
---

# DELETE /v4/workspaces/{workspaceId}/api-keys/{id}

`DELETE /v4/workspaces/{workspaceId}/api-keys/{id}`

## Request

- Base URL: `https://api.merkl.xyz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.merkl.xyz/v4/workspaces/{workspaceId}/api-keys/{id}`
- Auth: `apiKey` (a scheme the document does not define)

Revoke a key the caller owns or manages. Takes effect within seconds.

## Path parameters

- `workspaceId` string, uuid, required
- `id` string, uuid, required

## Response `200`

Response for status 200

- object
  - `id` string, required
  - `workspaceId` string, nullable, required
  - `userId` string, nullable, required: The identity that holds the key: a person or a service account
  - `prefix` string, required
  - `description` string, nullable, required
  - `tier` number, required
  - `issuedByUserId` string, nullable, required: The person who issued the key. Absent for historical keys
  - `createdAt` string, required
  - `expiresAt` string, nullable, required
  - `revokedAt` string, nullable, required

## Changes

- **2026-10-22** `b32d82e3d5c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/merkl/apis/merkl-api/changes/v4/workspaces/:workspaceId/api-keys/:id/delete.md)

---

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