Follow these guidelines to keep your API keys safe.
Never expose keys in frontend code. API keys should only be used from server-side applications. Client-side code (browsers, mobile apps) can be inspected by anyone.
Use environment variables. Store keys in your secrets manager or .env files — never hardcode them in source code.
Rotate keys periodically. Create a new key, update your systems, then revoke the old one. RevBridge supports multiple active keys to enable zero-downtime rotation.
Use separate keys per environment. Create distinct keys for development, staging, and production so you can revoke one without affecting others.
Restrict access. Only team members who need API access should have visibility into key values.