---
title: "Revoke the API key authenticating this request (self-revoke only)"
method: DELETE
path: "/v1/api-keys/{id}"
---

# Revoke the API key authenticating this request (self-revoke only)

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

## Request

- Base URL: `https://volai.cz`
- URL: `https://volai.cz/v1/api-keys/{id}`
- Auth: HTTP bearer

Self-revoke: over the API a key may only revoke ITSELF, never another key on the account - otherwise a stolen key would cut off every other integration and stay active itself. Revoking other keys is portal-only. An e-mail goes to the account owner after revocation regardless of who requested it.

## Path parameters

- `id` string, required

## Response `200`

Revoked

- object
  - `revoked` true, required

## Other responses

- `401`: Error codes: unauthorized (request).
- `403`: Error codes: account_suspended (account), api_key_self_only (request).
- `404`: Error codes: not_found (account).
- `429`: Error codes: rate_limited (busy).
- `500`: Error codes: internal_error (service).

---

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