---
title: Revoke an API key
description: Revokes an API key.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Revoke an API key

`DELETE /v1/workspaces/{workspaceId}/api-keys/{keyId}`

Revokes an API key. The owner can revoke their own personal key. An admin can revoke any key in the workspace. Storage rejects the key when this call returns.

## Authentication

Send `Authorization: Bearer <GRAPHON_API_KEY>`. Read the key from the
GRAPHON_API_KEY environment variable. Never print it.

## Path parameters

- `workspaceId` (string) — The workspace id.
- `keyId` (string) — The API key id.

## Example request

```bash
curl --request DELETE \
  --url "https://api.graphon.ai/v1/workspaces/wspq7ws2np5l8z4/api-keys/keyE5f6G7h8I9" \
  --header "Authorization: Bearer $GRAPHON_API_KEY"
```

## CLI

```bash
graphon api-keys revoke gak_1a8Xk2mQ
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
