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

# Revoke API key

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

## Request

- Base URL: `https://api.zvid.io`
- URL: `https://api.zvid.io/api/api-keys/{id}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Revoke (delete) an API key belonging to the authenticated user

## Path parameters

- `id` integer, required

## Response `200`

API key revoked successfully

- object
  - `success` boolean, required
  - `message` string, required

## Other responses

- `400`: Invalid ID, API key not found, or operation failed
- `401`: Unauthorized

---

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