---
title: "Revoke Project API Key"
method: DELETE
path: "/v1/projects/{projectId}/api-keys/{apiKeyId}"
tags: ["Project API Keys"]
---

# Revoke Project API Key

`DELETE /v1/projects/{projectId}/api-keys/{apiKeyId}`

Permanently revokes a project-scoped API key. This action cannot be undone.

## Path parameters

- `projectId` string, required
- `apiKeyId` integer, required

## Response `200`

- DeleteApiKeyResponse
  - `success` boolean, required — Indicates if the request was successful
  - `data` object, required
    - `id` integer — ID of the revoked API key
    - `deleted` boolean — Always `true` when the key was revoked

## Changes

> 54 revisions in range; 3 not diffed.

- **2026-05-31** `173563ada468` — 2 info
  - api tag `Project API Keys` added
  - api tag `API Keys` removed
- **2026-05-31** `78a7dd1b6b48` — 1 info
  - endpoint added
- **2026-05-31** `d493eef38a58` — 1 breaking
  - api path removed without deprecation
- **2026-05-31** `78a7dd1b6b48` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/changes/v1/projects/:projectId/api-keys/:apiKeyId/delete.md)

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) · [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/confident-ai/confident-ai-metrics-api/revisions/95cdde71b65e/schema)
