API Docs
API Keys
API ReferenceApi KeysRevoke

Revoke API Key

Revoke an API key permanently.

DELETE /api_keys/:merchant_id/:key_id

Path Parameters

ParameterTypeDescription
merchant_idstringRequired. Your merchant ID.
key_idstringRequired. The ID of the API key to revoke.

Request Example

curl -X DELETE 'https://api.v2.paychtec.com/api_keys/mer_123456/key_1234567890' \  -H "api-key: admin_YOUR_ADMIN_KEY"

Response

{
  "key_id": "key_1234567890",
  "revoked": true
}

Revoking an API key is permanent and cannot be undone. Any requests using this key will immediately fail with a 401 error.