---
title: "Revoke a key"
method: POST
path: "/v1/keys/{prefix}/revoke"
tags: ["API keys"]
---

# Revoke a key

`POST /v1/keys/{prefix}/revoke`

## Request

- Base URL: `https://api.cadencercs.com`
- URL: `https://api.cadencercs.com/v1/keys/{prefix}/revoke`
- Auth: HTTP bearer

Immediate. In-flight conversations opened by the key remain readable by the account.

## Path parameters

- `prefix` string, required

## Response `200`

Revoked.

- object
  - `ok` boolean, required

## Other responses

- `401`: Not signed in, and no account-linked API key was sent.
- `404`: No such key on this account.
- `500`: Unexpected server error. The body is always JSON.

---

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