---
title: "Revoke Current Key"
method: DELETE
path: "/v1/keys/current"
tags: ["keys"]
---

# Revoke Current Key

`DELETE /v1/keys/current`

## Request

- Base URL: `https://api.craterview.ai`
- URL: `https://api.craterview.ai/v1/keys/current`
- Auth: HTTP bearer

Stop the key this request is made with. Immediate, and the last thing it will do.

For a client signing out of a device that holds nothing but its own key. Revoking a key
by its id refuses the one you are calling with, so that rotating can never leave you
with none; this is that refusal lifted because you asked for exactly this.

It is refused while this is the account's only key and no sign-in is attached, because
nothing could reach the account afterwards. Create another key first, or sign in.

## Response `204`

Successful Response

## Other responses

- `400`: the path, query or a JSON string in the body contains a NUL character or an unpaired surrogate; the body is not JSON encoded as UTF-8, or carries a number JSON cannot represent (NaN, Infinity, or one too large) or nesting too deep to read; or an Idempotency-Key header is longer than 255 characters or not printable ASCII. The request was not read
- `401`: missing, malformed or unrecognised API key
- `404`: the key you are calling with no longer reaches an account
- `409`: this key is the account's only way back in
- `413`: the request body is larger than 1 MiB. The request was not read
- `502`: the request could not be applied; ask again
- `503`: key management is briefly unavailable; retry the request

---

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