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

# Revoke an agent key

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

## Request

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

It stops working at once (owner/admin).

## Path parameters

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

## Response `200`

Revoked.

- object
  - `revoked` true

## Other responses

- `401`: Missing, invalid or revoked API key.
- `403`: The key lacks the scope (`missing_scope`) or the access (`forbidden`).
- `404`: Not found — or not reachable with this key.
- `429`: Too many requests.

---

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