---
title: "API Key - Revoke"
method: DELETE
path: "/api_keys/{merchant_id}/{key_id}"
tags: ["API Key"]
---

# API Key - Revoke

`DELETE /api_keys/{merchant_id}/{key_id}`

Revoke the specified API Key. Once revoked, the API Key can no longer be used for
authenticating with our APIs.

## Path parameters

- `merchant_id` string, required
- `key_id` string, required

## Response `200`

API Key revoked

- RevokeApiKeyResponse — The response body for revoking an API Key.
  - `merchant_id` string, required — The identifier for the Merchant Account.
  - `key_id` string, required — The identifier for the API Key.
  - `revoked` boolean, required — Indicates whether the API key was revoked or not.

## Other responses

- `404` — API Key not found

---

[API](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0.md) · [All operations](https://skmtc.net/hyperswitch/apis/dynamic-routing-openapi-3-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hyperswitch/dynamic-routing-openapi-3-0/revisions/8fbf69ab2597/schema)
