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

# Revoke API key

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

## Request

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

Revokes an API key. You cannot revoke the key being used to make this request — use rotate or another key.

## Path parameters

- `id` string, required

## Response `204`

No content. Operation succeeded with empty body.

## Other responses

- `401`: Missing, invalid, or revoked API key.
- `403`: Authenticated but lacks permission (e.g. botsee_disabled).
- `404`: The requested resource does not exist or is not accessible.
- `422`: Request body or parameters failed validation.
- `429`: Too many requests. Wait and retry per Retry-After header.

---

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