---
title: "Revoke an API Key"
method: DELETE
path: "/api-keys/{keyId}"
tags: ["API Keys"]
---

# Revoke an API Key

`DELETE /api-keys/{keyId}`

## Request

- Base URL: `https://api.flashdata.dev/v2`
- URL: `https://api.flashdata.dev/v2/api-keys/{keyId}`
- Auth: API key in cookie `__Host-fd_session` and API key in header `X-CSRF-Token`

## Path parameters

- `keyId` string, required

## Response `204`

Revoked

## Other responses

- `401`: Authentication required or invalid
- `403`: Authenticated but not permitted, or CSRF validation failed
- `404`: Resource not found or not owned by the caller
- `503`: A required dependency or catalog is temporarily unavailable

---

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