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

# Delete an API key

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

## Request

- Base URL: `https://postbag.dev`
- URL: `https://postbag.dev/v1/api-keys/{id}`
- Auth: HTTP bearer

Revokes the key immediately; any client still using it starts getting 401s.

## Path parameters

- `id` string, required: The API key id (not the key value itself).

## Response `204`

deleted

## Other responses

- `400`: Error
- `401`: Error
- `403`: Error
- `404`: Not found
- `409`: Error
- `422`: Error

---

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