Adding a secret to your app
Store a key for an outside service under Secrets. Encrypted, never shown again, readable only by backend functions.
Last updated September 17, 2026
On this page
In the app's dashboard, press Add secret.
Name it the way the service does, in capitals and underscores, such as STRIPE_SECRET_KEY. Paste the value.
It is encrypted and never shown again, not even to you. Saving the same name again replaces the value.
Several at once
Import .env takes the contents of a .env file, pasted or uploaded. Each KEY=value line becomes a secret.
How it is used
Only backend functions can read a secret, and only the ones the builder declared it for. Page code never can, which is why a feature that needs your key is always a function plus a page that calls it.
Rotating
Save the new value under the same name. It takes effect on the next run.