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

# Revoke an API key

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

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/api-keys/{apiKeyId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.spacefast.com/v1/auth/oauth2/authorize`, token URL `https://api.spacefast.com/v1/auth/oauth2/token`; client credentials, token URL `https://api.spacefast.com/v1/auth/oauth2/token`, scopes: `teams:create`)

Revokes a key so it stops authenticating immediately. The record is retained for audit.

## Path parameters

- `apiKeyId` string, required: API key id.

## Response `204`

The key was revoked.

---

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