API Key - Revoke
DELETE /v2/api-keys/{id}
Revoke an API Key.
Request
cURL
curl --request DELETE \
--url https://sandbox.hyperswitch.io/v2/api-keys/{id} \
--header 'api-key: <api-key>'Response
Status: 200 application/json Description: API Key revoked
{
"merchant_id": "y3oqhf46pyzuxjbcn2giaqnb44",
"key_id": "5hEEqkgJUyuxgSKGArHA4mWSnX",
"revoked": "true"
}Related
Documentation: https://api-reference.hyperswitch.io/introduction
Locker API Reference: https://api-reference.hyperswitch.io/locker-api-reference/overview
Intelligent Router API Reference: https://api-reference.hyperswitch.io/intelligent-router-api-reference/overview
Suggest edits: https://github.com/juspay/hyperswitch/edit/main/api-reference/v2/api-key/api-key--revoke.mdx Raise issue: https://github.com/juspay/hyperswitch/issues/new?title=Issue%20on%20docs&body=Path:%20/v2/api-key/api-key--revoke
Previous / Next:
API Key - Update: https://api-reference.hyperswitch.io/v2/api-key/api-key--update
API Key - List: https://api-reference.hyperswitch.io/v2/api-key/api-key--list