Which Controls Should I Use?
Check plan availability before choosing a control. SSO availability differs from the basic credential and signing controls.
How Should I Store an Email API Key?
Keep it in your server’s secret store and load it at runtime. Never put a sending key in browser JavaScript, mobile bundles, public repositories, AI prompts or screenshots. Keep development, staging and production credentials separate. Use a sandbox credential for tests and a domain-scoped sending key for an app that only sends. Management jobs need a separate full key with only the necessary scopes. Do not give an email form permission to create credentials or delete suppressions. Avoid logging authorization headers, full SMTP connection strings or raw upstream errors that may include private data.What Should I Do If an API Key Leaks?
- Identify and revoke the exposed credential. Use the matching credentials page or API-key deletion endpoint. If it is an SMTP credential, use SMTP credential revocation. Do not wait for a code cleanup while unauthorized use can continue.
- Stop affected jobs if needed. Disable the vulnerable send path while you restore a valid credential. Record which apps used the key so you do not leave an old worker running.
- Create a replacement with less access where possible. Use a separate domain-scoped send-only key for each sending app. A job that manages resources needs a correctly scoped full key.
- Update the secret store and restart consumers. Check worker processes, scheduled tasks and deployed functions, not only the web server. Verify a sandbox test before restoring the affected send path.
- Review activity from the possible exposure time. Check message logs, usage and the resources the key could change. Look for unfamiliar credentials, webhooks or routes if it had those management scopes. Preserve sanitized evidence and ask support about unexpected activity.
- Remove the exposure and prevent a repeat. Remove the key from current files and build artifacts, arrange repository-history cleanup when needed, and fix the logging or configuration mistake. Removing a key from a file does not revoke it; the old secret must stay revoked.

