---
title: "Delete an API key"
method: DELETE
path: "/api/keys/{id}"
tags: ["API Keys"]
---

# Delete an API key

`DELETE /api/keys/{id}`

## Request

- Base URL: `https://www.audioscrape.com`
- URL: `https://www.audioscrape.com/api/keys/{id}`
- Auth: HTTP bearer

Revokes the key immediately. Any in-flight requests using the revoked key will fail with 401 on their next call.

Accepts either a session cookie or an existing API key as auth.

## Path parameters

- `id` integer, required

## Response `204`

Key deleted (idempotent — succeeds even if already absent)

## Other responses

- `401`: Missing or invalid session / key

---

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