cURL
curl --request POST \ --url https://api-beta.pepay.io/api/v1/api-keys/{keyId}/revoke \ --header 'Authorization: Bearer <token>'
{ "message": "API key revoked successfully" }
Permanently revokes an API key. This action:
Legacy path: /api/v1/merchant-api-keys/{keyId}/revoke is an alias of this endpoint.
/api/v1/merchant-api-keys/{keyId}/revoke
JWT token for wallet authentication
UUID of the API key to revoke
API key revoked successfully
Was this page helpful?