---
title: "Revoke an API key"
method: DELETE
path: "/v0.1/merchants/{merchant_code}/api-keys/{key_id}"
tags: ["API Keys"]
---

# Revoke an API key

`DELETE /v0.1/merchants/{merchant_code}/api-keys/{key_id}`

Revokes an API key.

## Path parameters

- `merchant_code` string, required
- `key_id` string, required

## Response `204`

Successful revocation.

## Changes

- **2025-02-25** `cdadac3315a1` — 2 info
  - the endpoint scheme security `apiKey` was added to the API
  - the endpoint scheme security `oauth2` was added to the API

[Change history](https://skmtc.dev/sumup/apis/sumup-rest-api/changes/v0.1/merchants/:merchant_code/api-keys/:key_id/delete.md)

---

[API](https://skmtc.dev/sumup/apis/sumup-rest-api.md) · [All operations](https://skmtc.dev/sumup/apis/sumup-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sumup/apis/sumup-rest-api/revisions/cdadac3315a1?raw)
