Security and privacy
Keys
Publishable keys go in your app; secret keys stay on your servers. Both are per environment.
| Key | Looks like | Where it goes | What it can do |
|---|---|---|---|
| Publishable | ps_pub_prod_… | Your app, in plain sight | Read published guides; send guide events |
| Secret | ps_sec_prod_… | Your servers and CI secrets | Publish guides and delete user data, via the server API |
- Each environment (development, production) has its own pair.
- Secret keys are shown once. We store only a SHA-256 hash and the first characters, for display.
- Rotate both keys of an environment in Settings › API keys. The old secret key stops at once, so update your servers right after. The old publishable key keeps loading guides and taking events for 24 hours, so you have time to ship the new one (a mobile app needs a store release). Settings › API keys shows it until then, with Stop it now for a key that leaked.
- A config request with a key no app has answers
404with a message saying so, which you see in the browser's network tab. The Flutter SDK also logs it and callsonEventwith{ type: 'sdk_error', message: 'config_not_found' }(0.10+).
A publishable key cannot read drafts, other environments, analytics or anything about your users.