---
title: "Hard-revoke a key immediately (revoked_at = now)"
method: DELETE
path: "/v1/account/keys/{key_id}"
tags: ["system"]
---

# Hard-revoke a key immediately (revoked_at = now)

`DELETE /v1/account/keys/{key_id}`

## Request

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

## Path parameters

- `key_id` string, required

## Response `204`

Successful Response

## Other responses

- `401`: Authentication failed.
- `404`: The requested resource is unavailable or not found.
- `422`: Validation Error
- `429`: Rate limit or quota exceeded. `error` is one of: `rate_limited` (keyless caller over the per-IP hourly cap, X-RateLimit-Scope anon-ip-hour), `rate_limit_exceeded` (API key over its per-minute limit, scope tier-rate-minute) or `quota_exceeded` (monthly quota used, scope tier-quota-month). Wait for Retry-After seconds before retrying; do not retry a monthly quota error automatically.
- `500`: The operation failed internally.
- `503`: A required backend or data source is temporarily unavailable.

## Changes

- **2026-08-18** `b7c4b36e1fa1`: 1 warning, 10 info
  - removed the optional property `detail` from the response with the `422` status
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - the endpoint scheme security `BearerAuth` was added to the API
  - added the non-success response with the status `401`
  - …7 more

[Operation history](https://skmtc.dev/goldprice/apis/gold-api/changes/v1/account/keys/:key_id/delete.md)

---

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