---
title: "Revoke a workspace API key"
method: DELETE
path: "/api/workspaces/{wid}/api-keys/{id}"
tags: ["Workspace API Keys"]
---

# Revoke a workspace API key

`DELETE /api/workspaces/{wid}/api-keys/{id}`

## Path parameters

- `wid` string, required
- `id` string, required

## Response `204`

No Content

## Other responses

- `403` — owner or maintainer required
- `500` — internal error

## Changes

> 20 revisions in range; 1 could not be searched.

- **2026-05-22** `2329d95e1b7f` — 1 info
  - endpoint added
- **2026-05-22** `1ba39f384b63` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentserver/apis/agentserver-api/changes/api/workspaces/:wid/api-keys/:id/delete.md)

---

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