---
title: "Revoke API key"
method: DELETE
path: "/api/keys"
tags: ["API Keys"]
---

# Revoke API key

`DELETE /api/keys`

## Request

- Base URL: `https://www.zestio.de`
- URL: `https://www.zestio.de/api/keys`
- Auth: API key in cookie `sb-access-token`

Revoke (deactivate) an API key. This action cannot be undone.

## Request body

- RevokeApiKeyRequest
  - `key_id` string, required: ID of the API key to revoke

## Response `200`

API key revoked

- SuccessResponse
  - `success` boolean

## Other responses

- `400`: Bad request - invalid parameters
- `401`: Unauthorized - invalid or missing credentials
- `500`: Internal server error

---

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