Base44 set up

    Store Your MLS API Key in Base44

    Where Base44 keeps secrets, how a Base44 backend function reads the key, and how to check it never reaches the page.

    Part of the Base44 MLS API Integration guide · Last reviewed 2026-11-20

    Storing an MLS API key in Base44 secrets

    In Base44, an API key belongs in the app's Secrets. Open the app editor, click Dashboard, then Secrets, then Add Secret, and enter SAIGE_MLS_API_KEY as the Secret Name and your key as the Secret Value. Add SAIGE_MLS_API_URL for the feed address the same way. Base44's docs say backend functions read each secret by its exact name when they run, so the values never reach the browser.

    Key takeaways

    • Path: app editor, Dashboard, Secrets, Add Secret.
    • Names use underscores and no spaces.
    • The Secrets page appears once the app uses backend functions.
    • Developers can also set secrets with the CLI: base44 secrets set NAME=value.

    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 Base44 keeps secrets

    Secrets belong to one app. If the Secrets page is missing, the app has no backend function yet: ask Base44 to create one, then the page appears.

    To add several secrets at once, Base44 offers Import .env, which reads a file of NAME=value lines.

    • Open your app editor and click Dashboard.
    • Click Secrets, then Add Secret.
    • Secret Name: SAIGE_MLS_API_KEY. Secret Value: your key. Click Add Secret.
    • Repeat with SAIGE_MLS_API_URL and the feed address.

    Reading the key in a Base44 backend function

    Base44 backend functions run on Deno. Its docs show secrets available to backend functions as environment variables, read with Deno.env.get. Read them inside the function's handler, not at the top of the file.

    Backend function reading the key (Base44)
    Deno.serve(async (req) => {
      const key = Deno.env.get("SAIGE_MLS_API_KEY");
      const base = Deno.env.get("SAIGE_MLS_API_URL");
    
      const res = await fetch(
        `${base}/Property?$filter=StandardStatus eq 'Active'&$top=24`,
        { headers: { Authorization: `Bearer ${key}` } }
      );
      return new Response(await res.text(), {
        headers: { "Content-Type": "application/json" },
      });
    });

    Check before you publish

    Open the published Base44 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 cannot find the Secrets page in Base44.

    It appears once the app uses backend functions. Ask Base44 to create a backend function first.

    Can I set secrets from the command line?

    Yes. Base44's CLI has base44 secrets set NAME=value, and its docs say new values reach deployed backend functions right away.

    Are secrets shared between my Base44 apps?

    No. App secrets belong to one app. Add the key to each app that needs it.

    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.

    MLS API for BC

    Put live MLS listings on the site you are building

    Saige is an approved MLS data vendor for Greater Vancouver REALTORS, Fraser Valley Real Estate Board, Chilliwack and District Real Estate Board and BC Northern Real Estate Board. Send a request and our team will contact you to check what your board allows and how to connect your builder.

    Call 604.401.4849