Help Center
Pages

What's the difference between publishable and secret keys?

Topic
SDKs & integration
Asked by
Developers
AdminUpdated Sep 11, 2026

Atlas uses two kinds of keys, and the split is enforced by construction, not by convention:

  • Publishable key (pk_live_…) — used by frontend and mobile SDKs. Safe to embed in a browser bundle because it is scoped to exactly the public operations a logged-out visitor could already perform. If it leaks, nothing privileged leaks with it.

  • Secret key (sk_live_…) — used by backend SDKs only. Stays on your server. Grants privileged, server-side operations (managing users, verifying sessions, administering organizations).

Both keys are scoped to a single instance, so a key can never touch another instance's data. Client SDKs are simply incapable of privileged operations. Manage and rotate keys in the dashboard's API Keys view. See the keys guide.

Publishable keys (pk_live_…) are safe to ship in browser/mobile code and can only do what a logged-out visitor could. Secret keys (sk_live_…) stay on your server and grant privileged operations. Both are scoped to one instance.

Was this page helpful?
What's the difference between publishable and secret keys?