---
title: "Revoke an API key (admin, interactive session only)"
method: DELETE
path: "/api-keys/{key_id}"
tags: ["API keys"]
---

# Revoke an API key (admin, interactive session only)

`DELETE /api-keys/{key_id}`

Revokes a portal API key. Revoked keys are refused immediately. Requires an interactive admin session; API-key bearers receive 403.

## Path parameters

- `key_id` string, required

## Response `200`

Key revoked.

- object
  - `revoked` boolean
  - `id` string

## Other responses

- `401` — Missing or invalid bearer token.
- `403` — Insufficient scope or role — e.g. a read-scoped key on a mutating method, or an API key on an admin/approver-only endpoint.

---

[API](https://skmtc.net/lastaccountingcompany/apis/lac-customer-api.md) · [All operations](https://skmtc.net/lastaccountingcompany/apis/lac-customer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lastaccountingcompany/lac-customer-api/versions/52e277b4f031/schema)
