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

# Revoke inbox API key

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

## Request

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

Permanently revoke an inbox-scoped API key. Any integration using it immediately starts getting 401s. An account-wide key, or a pod-scoped key for this inbox's pod, may revoke; an inbox-scoped key cannot.

## Path parameters

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

## Response `204`

Key revoked

## Other responses

- `403`: The authenticating key is inbox-scoped, or a pod-scoped key for a different pod, 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)
