API Key Safety
API keys authorize email sends. Treat them like production credentials.
Rules
- Store keys in environment variables or a secret manager.
- Never commit keys.
- Never paste keys into screenshots or tickets.
- Use IP allowlists when possible.
- Rotate keys when a service owner changes.
- Disable unused API templates.
Example environment use
export PING8_API_KEY="replace-with-your-key"Rotation process
- Create a new API template or key.
- Deploy the new key to your application.
- Send one test email.
- Confirm delivery telemetry.
- Disable the old key.
- Delete the old key after a safe waiting period.