Bolt set up

    Store Your MLS API Key in Bolt

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

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

    Storing an MLS API key in Bolt secrets

    In Bolt, an API key belongs in Secrets. Click the database icon in the top menu, then Secrets, enter SAIGE_MLS_API_KEY as the Name and your key as the Value, and click Save. Add SAIGE_MLS_API_URL the same way. Bolt's docs say server functions read a secret only when they need it, and that Bolt does not write the value into project files, page code or the published site.

    Key takeaways

    • Path: database icon, Secrets.
    • Names are case-sensitive.
    • Secrets starting with SUPABASE_ are Bolt's own and cannot be deleted.
    • Deleting a secret stops every function that uses it.

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

    Secrets live with the project's database. If the database icon shows no Secrets option, connect a database first.

    • Open your Bolt project.
    • In the top menu, click the database icon, then Secrets.
    • Name: SAIGE_MLS_API_KEY. Value: your key. Click Save.
    • Repeat for SAIGE_MLS_API_URL.

    Reading the key in a Bolt server function

    Bolt's docs say server functions run on Bolt's servers and read a secret only when they need it. Bolt Database is powered by Supabase, whose Edge Functions read secrets with Deno.env.get, as in the example below. Ask Bolt which runtime your project's server functions use before you copy it.

    Server function reading the key (Deno example)
    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}` } }
    );

    Check before you publish

    Open the published Bolt 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

    Can I view the key after saving it in Bolt?

    No. Bolt does not display a secret's value again after you save it.

    Why does Bolt say "Project admin access required"?

    Your role is Editor or Viewer. Ask the project owner or a team Admin to add the secret.

    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