---
title: "Revoke an API key"
method: DELETE
path: "/v1/keys/{key_id}"
---

# Revoke an API key

`DELETE /v1/keys/{key_id}`

## Request

- Base URL: `https://api.reqbeat.com`
- URL: `https://api.reqbeat.com/v1/keys/{key_id}`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Self-serve key revocation, scoped to the caller's own customer --
revoking another tenant's key id 404s, identical to revoking one that
doesn't exist at all (fail-fast, no cross-tenant leak).

Requires the `account` scope.

## Path parameters

- `key_id` integer, required: The API key's id, as returned by GET /v1/keys.

## Response `204`

Successful Response

## Other responses

- `401`: No API key was sent.
- `403`: The presented key is invalid or revoked, or (see `x-required-scope` on this operation) it does not carry the scope this operation requires.
- `422`: Validation Error

---

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