Backend functions and secrets
Small pieces of your app that run on our servers, and the private keys they use. Not switched on yet.
Backend functions are small pieces of your app that run on our servers instead of in the browser, for example to talk to an outside service with a private key. Secrets are those private values, like API keys.
Not switched on yet
Backend functions can't run on Type An App yet. If your app has them, launching warns you: "This app has backend functions, which Type An App can't run yet. The parts of the app that use them will show an error." Most apps don't need them: data, sign-in, emails, AI, payments and workflows all work without.
Backend functions are part of the Basic plan and higher.
Functions & secrets page
Go to Dashboard → Functions & secrets to see your app's functions and manage secrets.
Adding a secret
- Enter a name in capitals, digits and underscores, like WEATHER_API_KEY.
- Choose Live value (your published app) or Test value (the preview).
- Paste the key and save.
Secrets are stored encrypted and can only be read by your app's functions: not by visitors, not by the AI, and not on this page. The preview never uses your live keys, so add a test key (for example a Stripe test key) to try a feature there.
Replace changes a value; Delete removes both its Live and Test values.