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

# Revoke an API key

`DELETE /api/keys/{id}`

## Request

- Base URL: `https://snaplab.dev`
- URL: `https://snaplab.dev/api/keys/{id}`
- Auth: HTTP bearer

## Response `200`

Revoked.

- object
  - `ok` boolean

## Other responses

- `401`: Not authenticated.
- `403`: API keys can't manage other API keys.

---

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