---
title: "Revoke API Key"
method: DELETE
path: "/v1/api-keys/{id}"
tags: ["API Key Management"]
---

# Revoke API Key

`DELETE /v1/api-keys/{id}`

Soft-revoke an API key. Cannot revoke your last active key.

## Path parameters

- `id` string, uuid, required

## Response `200`

Key revoked

- object
  - `status` 'success', required
  - `data` object, required

## Other responses

- `404` — Key not found (or belongs to another user)
- `422` — Cannot revoke last active key or already revoked
- `500` — Unexpected server error. Retry transient failures with bounded backoff and retain the request ID when contacting support.

---

[API](https://skmtc.net/oilpriceapi/apis/oil-price-api-v1.md) · [All operations](https://skmtc.net/oilpriceapi/apis/oil-price-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oilpriceapi/oil-price-api-v1/versions/5a5ce424cacc/schema)
