---
title: "Delete Api Key"
method: DELETE
path: "/api-keys/{api_key_id}"
tags: ["API Keys"]
---

# Delete Api Key

`DELETE /api-keys/{api_key_id}`

## Request

- Base URL: `https://be.graph8.com/api/v1`
- URL: `https://be.graph8.com/api/v1/api-keys/{api_key_id}`
- Auth: HTTP bearer

Revoke an API key. Idempotent: revoking a key that no longer exists
(already revoked, or never existed in this org) returns 404, never 500.

## Path parameters

- `api_key_id` string, required

## Headers

- `X-Target-Org-Id` string, nullable
- `Authorization` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/graph8/apis/graph8-developer-api.md) · [All operations](https://skmtc.dev/graph8/apis/graph8-developer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/graph8/apis/graph8-developer-api/revisions/2e7cfa0ca921?raw)
