---
raw: true
search:
  tags:
    - Account
    - DELETE
seo:
  description: >-
    Revokes a key so it stops authenticating immediately. The record is
    retained… Reference for the DELETE /v1/api-keys/{apiKeyId} endpoint in the
    Spacefast API.
sidebar:
  label: Revoke an API key
  badge: DELETE
title: Revoke an API key
type: openapi-operation
---
Revokes a key so it stops authenticating immediately. The record is retained for audit.

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

**Responses**

- `204` — The key was revoked.
