---
title: "Revoke a customer mailbox key"
method: DELETE
path: "/customers/{id}/api-keys/{keyId}"
tags: ["Partners"]
---

# Revoke a customer mailbox key

`DELETE /customers/{id}/api-keys/{keyId}`

## Request

- Base URL: `https://faivelo.com/api/partner`
- URL: `https://faivelo.com/api/partner/customers/{id}/api-keys/{keyId}`
- Auth: HTTP bearer

The key stops working on its next request. Requires `partner:write`.

## Path parameters

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

## Response `200`

Revoked

- object
  - `success` boolean
  - `data` object
    - `revoked` true

## Other responses

- `401`: Missing or invalid API key, or not a partner key
- `403`: The key lacks the required scope, or provisioning is refused (partner paused, customer cap reached)
- `404`: Not found, including any customer that is not yours
- `429`: Rate limit exceeded

---

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