If you suspect that an API key has been compromised, take immediate action to mitigate potential risks:
Revoke the compromised API key from your email marketing platform’s settings. Generate a new API key and update any integrations that were using the old key. Review your security protocols to prevent future incidents.