---
title: "Revoke an API key"
method: DELETE
path: "/dashboard/api-keys/{apiKeyHash}"
tags: ["API Keys"]
---

# Revoke an API key

`DELETE /dashboard/api-keys/{apiKeyHash}`

## Request

- Base URL: `https://blockreq.com/api`
- URL: `https://blockreq.com/api/dashboard/api-keys/{apiKeyHash}`
- Auth: HTTP bearer

## Path parameters

- `apiKeyHash` string, required

## Response `200`

Revoked

- object
  - `code` number, required
  - `ok` boolean, required
  - `data` object, required
    - `ok` boolean, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Internal Error

---

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