---
title: "Revoke pod API key"
method: DELETE
path: "/v1/pods/{id}/api-keys/{keyId}"
tags: ["pods"]
---

# Revoke pod API key

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

## Request

- Base URL: `https://api.openmail.sh`
- URL: `https://api.openmail.sh/v1/pods/{id}/api-keys/{keyId}`
- Auth: HTTP bearer

Permanently revoke a pod-scoped API key. Any integration using it immediately starts getting 401s. Requires an account-wide key.

## Path parameters

- `id` string, required
- `keyId` string, required

## Response `204`

Key revoked

## Other responses

- `403`: The authenticating key is pod-scoped and cannot manage keys
- `404`: Key not found

---

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