DELETE
/
api_keys
/
{merchant_id}
/
{key_id}
curl --request DELETE \
  --url https://sandbox.hyperswitch.io/api_keys/{merchant_id}/{key_id} \
  --header 'api-key: <api-key>'
{
  "merchant_id": "y3oqhf46pyzuxjbcn2giaqnb44",
  "key_id": "5hEEqkgJUyuxgSKGArHA4mWSnX",
  "revoked": "true"
}

Authorizations

api-key
string
header
required

Admin API keys allow you to perform some privileged actions such as creating a merchant account and Merchant Connector account.

Path Parameters

merchant_id
string
required

The unique identifier for the merchant account

key_id
string
required

The unique identifier for the API Key

Response

200
application/json
API Key revoked

The response body for revoking an API Key.

merchant_id
string
required

The identifier for the Merchant Account.

Maximum length: 64
key_id
string
required

The identifier for the API Key.

Maximum length: 64
revoked
boolean
required

Indicates whether the API key was revoked or not.