---
title: "Deactivate API key"
method: DELETE
path: "/v1/api-keys/{keyId}"
tags: ["API Keys"]
---

# Deactivate API key

`DELETE /v1/api-keys/{keyId}`

Deactivates (soft deletes) an API key and invalidates it immediately.

## Path parameters

- `keyId` string, required — API key identifier.

## Headers

- `x-project-id` string — Selects the active project for this request. Required for session/dashboard callers. Ignored when authenticating with an API key, whose scope is fixed to the key's project.

## Request body

- object
  - `confirmation` string, required — Type the exact API key name to confirm deletion.

## Response `200`

API key revoked

- object — Standard success response envelope.
  - `data` object, required — API key revocation response payload.
    - `success` true, required — Revocation result.
    - `revokedAt` string, date-time, required — Revocation timestamp.
  - `meta` object, required — Response metadata.
    - `requestId` string, required — Request identifier for tracing.
    - `timestamp` string, date-time, required — ISO 8601 timestamp.

## Other responses

- `400` — Error
- `401` — Error
- `403` — Error
- `404` — Error
- `500` — Error

---

[API](https://skmtc.net/solana/apis/solana-developer-platform-api.md) · [All operations](https://skmtc.net/solana/apis/solana-developer-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/solana/solana-developer-platform-api/revisions/672b1916ba61/schema)
