Webflow set up
Store Your MLS API Key in Webflow
Where Webflow keeps secrets, how a Webflow Cloud app reads the key, and how to check it never reaches the page.
Part of the Webflow MLS API Integration guide · Last reviewed 2026-11-20

In Webflow Cloud, an API key belongs in the environment's Environment Variables, marked as Secret. Open the Deployments Dashboard for the environment, click Environment Variables, then Add variable, then Add single variable, enter SAIGE_MLS_API_KEY with your key, and turn on Secret. Webflow's docs say changes apply only after you push a commit that triggers a new deployment.
Key takeaways
- Path: Deployments Dashboard, Environment Variables, Add variable, Add single variable.
- Turn on Secret for the key.
- Push a commit to deploy with the new value.
- Variables belong to one deployment.
Need the data feed for this? Saige is an approved MLS data vendor in BC. Send a request and our team will contact you.
Where Webflow keeps secrets
Webflow's docs say anyone with access to the Webflow Cloud app can view its environment variables, which is why the key must be marked Secret.
- Open the Deployments Dashboard for the environment.
- Click Environment Variables, then Add variable, then Add single variable.
- Key: SAIGE_MLS_API_KEY. Value: your key. Turn on Secret.
- Add SAIGE_MLS_API_URL the same way, then push a commit to redeploy.
Reading the key in a Webflow Cloud app
Webflow's bring-your-own-app guide declares the app's environment variables in a CloudflareEnv type. In a Next.js or Astro route that runs on the server, read the variable from the environment your framework exposes, and return only listing data.
// src/pages/api/listings.ts
export async function GET({ locals }) {
const env = locals.runtime.env;
const res = await fetch(
`${env.SAIGE_MLS_API_URL}/Property?$filter=StandardStatus eq 'Active'&$top=24`,
{ headers: { Authorization: `Bearer ${env.SAIGE_MLS_API_KEY}` } }
);
return new Response(await res.text(), {
headers: { "Content-Type": "application/json" },
});
}Check before you publish
Open the published Webflow site, view the page source, and search for the first characters of your key. It must not be there. Then use the search page with the browser's network panel open: requests should go to your own server code, not straight to the feed address. The full check list is at Keep Your MLS API Key Secret on an AI-Built Site.
Frequently asked questions
I changed the key but the site still uses the old one.
Webflow's docs say changes apply only after a new deployment. Push a commit to redeploy.
Can I import a .env file?
Yes. Add variable, then Bulk import, accepts a .env file, and you can toggle Secret for sensitive entries.
Related pages in this guide
Sources
Every claim on this page that could be checked against a primary source is linked below. Where something is not publicly documented by a vendor, the page says so rather than filling the gap with an estimate.
- Webflow Cloud environments and environment variables (Webflow)
- Bring your own app (Webflow)
- Secrets Management Cheat Sheet (OWASP Foundation)