Each app has two kinds of key, under Keys on its page.
- Publishable key (
pk_). Safe to show in a web page; the install snippet uses it. It can't change anything. - Secret key (
sk_). For a server app's own server, never a web page. Key shows it once, on its own page, when you make it. Copy it then, into your server's secret settings, because Key keeps only a scramble of it and can't show it again.
Rotating and revoking
- To rotate a key, make a new one, put it on your site or server, then revoke the old one. Your site keeps working throughout.
- Revoke stops a key at once. If you think a secret key was seen by someone else, revoke it straight away and make a new one.
- Your only publishable key: if you revoke it, the install snippet stops working until you make a new one. The dashboard tells you so beside it.