---
title: "Revoke an API key"
method: DELETE
path: "/api/api-keys/{id}"
tags: ["API keys"]
---

# Revoke an API key

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

Revokes a key owned by the authenticated account. API keys need the `api_keys:write` scope.

## Path parameters

- `id` string, uuid, required

## Response `200`

Key was revoked or was already revoked.

- object
  - `revoked` true

## Other responses

- `401` — Missing, invalid, revoked, or expired credentials.
- `403` — Credential is valid but cannot perform this action.
- `404` — Resource was not found or does not belong to the authenticated account.

---

[API](https://skmtc.net/carboncopyinc/apis/blueprints-api.md) · [All operations](https://skmtc.net/carboncopyinc/apis/blueprints-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/carboncopyinc/blueprints-api/revisions/821dba6e3373/schema)
