---
title: "Revoke API key"
method: DELETE
path: "/v1/communities/{communityId}/api-keys/{keyId}"
tags: ["API Keys"]
---

# Revoke API key

`DELETE /v1/communities/{communityId}/api-keys/{keyId}`

## Request

- Base URL: `https://api.subo.ai`
- URL: `https://api.subo.ai/v1/communities/{communityId}/api-keys/{keyId}`
- Auth: API key in header `X-API-Key`

Revoke a key immediately. In-flight requests using this key will be rejected. Admin role required.

## Path parameters

- `communityId` string, required
- `keyId` string, required

## Response `200`

Revoked

## Other responses

- `401`: Invalid or missing API key
- `403`: Forbidden — the key or user lacks permission for this resource or operation
- `404`: Resource not found
- `429`: Rate limit exceeded — wait `retry_after` seconds before retrying. The same value appears in the `Retry-After` header.

---

[API](https://skmtc.dev/subo/apis/subo-api.md) · [All operations](https://skmtc.dev/subo/apis/subo-api/llms.txt) · [OpenAPI document](https://skmtc.dev/subo/apis/subo-api/revisions/12eab2ae4505?raw)
