---
title: "Revokes an API key"
method: DELETE
path: "/api/auth/api-keys/{apiKeyID}"
tags: ["API Keys"]
---

# Revokes an API key

`DELETE /api/auth/api-keys/{apiKeyID}`

## Request

- Base URL: `https://passivelogic.com` (the document declares no server; this is the origin it was published from)
- URL: `https://passivelogic.com/api/auth/api-keys/{apiKeyID}`
- Auth: one of:
  - API key in header `X-PL-AUTH`
  - API key in header `Authorization: PL-API-KEY`
  - API key in header `PL-API-KEY`
  - HTTP basic
- TypeScript: <https://skmtc.dev/passivelogic/apis/passivelogic-http-api/docs/api/auth/api-keys/:apiKeyID/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `apiKeyID` string, required

## Response `204`

API key revoked.

---

[API](https://skmtc.dev/passivelogic/apis/passivelogic-http-api.md) - [All operations](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/passivelogic/apis/passivelogic-http-api/revisions/28fce63bcdbb?raw)
