Skip to Content
docs
Concepts

Keys

Publishable keys for app builds, secret keys for servers.

Keys are per app and environment, so the body of a request never names either.

KindPrefixPut itIt can
Publishableuc_pub_<env>_inside app buildssend events, identify, purchases
Secretuc_sec_<env>_your servers onlythe above, plus set properties on any player and run imports

Never ship a secret key

A secret key can write to any player's profile. If one ends up in a build or a public repo, rotate it right away.

Rotation

In Settings ▸ Apps, open the app and press Rotate under Environments & keys to issue a new key. The old one keeps working for 7 days so builds in players' hands keep sending while you ship an update. Revoke immediately when a key leaked.

On this page