Choosing the right API before you paste
Use Bedrock for connected desktop tools, launchers, and utilities running on customer machines. Use Nightflyer for single-player games or desktop apps that need signed offline leases between 20 minutes and 90 days. Use the Simple API only when the licensing call runs on a trusted server you control, such as a web backend or Discord bot. All three authentication APIs work on the Free tier (up to 30 users), so you can test the full integration before paying anything.
Keep secrets out of client code
Your System ID and Ed25519 verification public key are safe to embed in distributed applications. Reseller tokens and private keys are never safe inside client binaries and should stay on trusted servers. Management API v2 tokens (slm_...) are only safe to ship in client code if the permissions are extremely limited.