Skip to content

Where are my API keys, and which should I use?

Publishable keys for the browser, secret keys for your server, restricted keys for limited access; test and live keys are separate.

Find and create keys in Developers → API keys.

KeyStarts withUse it for
Publishablesov_pk_Code in the browser or an app. It's public by design.
Secretsov_sk_Your server only. It can do everything.
Restrictedsov_rk_A secret key limited to the resources and access levels you choose.

Each key also says its mode: sov_sk_test_… works only with test data, sov_sk_live_… only with live data.

Keep secret keys secret

  • Never put a secret or restricted key in a browser, an app, a public repository or a support message.
  • Give each system its own restricted key with only what it needs.
  • Add an IP allow-list or an expiry date to a key where you can.
  • If a key may have leaked, roll it right away from the same page.

People with the Developer role can create test keys, but not live secret keys.

Search help articles

Find an answer in the Sovgate help center and jump straight to it.