---
title: "Revoke an API key"
method: DELETE
path: "/v1/keys/{id}"
tags: ["keys"]
---

# Revoke an API key

`DELETE /v1/keys/{id}`

## Request

- Base URL: `https://api.hyperresearch.ai`
- URL: `https://api.hyperresearch.ai/v1/keys/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `hr_session`

Writes `revoked_at` in D1 and a `revoked:<lookup>` tombstone in KV so revocation propagates in seconds.

## Path parameters

- `id` string, required

## Response `200`

Revoked

- RevokedApiKey
  - `id` string, required
  - `revoked` true, required
  - `revoked_at` string, required

## Other responses

- `400`: Invalid request
- `401`: Authentication failed
- `403`: Insufficient scope or plan
- `404`: Not found
- `429`: Rate limited or over quota
- `500`: Internal error

---

[API](https://skmtc.dev/hyperresearch/apis/hyperresearch-cloud-api.md) · [All operations](https://skmtc.dev/hyperresearch/apis/hyperresearch-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hyperresearch/apis/hyperresearch-cloud-api/revisions/726ef831ebf4?raw)
