Docs / Get started
Authentication: Sending Your Saige MLS API Key
How the key is sent with each request, where it is stored, and what a 401 or 403 means.
Every request to the Saige MLS API carries your key in the Authorization header as a bearer token. The RESO Web API Core specification bases authentication on OAuth 2, and bearer tokens are one of the two methods it lists. The key belongs to an approved member, so it lives in server-side secret storage and is never written into page code.
The Authorization header
A bearer token is sent in the Authorization header, with the word Bearer, a space, and the token. The IETF's bearer token standard, RFC 6750, defines this form. Send it on every request, including the requests that follow @odata.nextLink.
Authorization: Bearer {SAIGE_MLS_API_KEY}Where the key lives
The key goes into the secret storage of your builder or host, under the name SAIGE_MLS_API_KEY. Server code reads it from there when it builds a request. The page Keep Your MLS API Key Secret on an AI-Built Site shows where that storage is in Lovable, Base44, Bolt, Replit, v0, WordPress, Supabase and the rest, and why a key in page code can be read by anyone who opens the page.
- Never put the key in page code, a public file or a Git repository.
- Never print the key in logs or error messages.
- Use one key per site, so one site can be switched off without touching the others.
- If a key may have leaked, tell our team and it is replaced.
HTTPS only
The RESO Web API Core specification requires HTTPS with TLS 1.2 or newer. Send every request to the https address you are given. A request over plain http is refused.
When authentication fails
RESO separates the two failures. A 401 means authentication failed: the header is missing, the word Bearer is missing, or the key is not accepted. A 403 means authorization failed: the key is valid, but it is not allowed to read that resource or that data, for example sold data on a key approved for active listings only.
- 401: check the header name, the word Bearer and the space, and that the secret holds the full key.
- 403: check that you asked for a resource your access includes. Ask our team if your site now needs more.
- Never retry a 401 in a loop. Fix the key first.
Authentication answers at a glance
| Status | Meaning | What to do |
|---|---|---|
| 200 | The key was accepted | Read the answer |
| 401 | The key is missing or not accepted | Check the Authorization header and the secret |
| 403 | The key is not allowed to read this | Check your access with our team |
Status meanings from the RESO Web API Core specification.
Common questions
What kind of key does the Saige MLS API use?
A bearer token, sent in the Authorization header. The RESO Web API is based on OAuth 2, and bearer tokens are one of its methods.
Can I put the key in the query string?
No. Send it in the Authorization header, so it does not end up in server logs and browser history.
Does the key expire?
The terms of your key are set when access is set up. Our team tells you how replacement works for your account.
Can one key serve several websites?
Ask our team. Access is agreed per site and per board, so each site is set up in the review.
Why do I get a 401 from Lovable but not from curl?
Check three things in Lovable: the secret exists, its name is exactly SAIGE_MLS_API_KEY, and the request runs in a server function, where secrets can be read.
What does a 403 on sold data mean?
Your key is valid but your access does not include VOW data. Ask our team whether your board allows it for your site.
Is HTTPS required?
Yes. The RESO Web API Core specification requires HTTPS with TLS 1.2 or newer.
What should I do if my key leaks?
Tell our team right away so the key is replaced, then update the secret on your site.
Specifications
- RFC 6750: The OAuth 2.0 Authorization Framework, Bearer Token Usage (IETF)
- Web API Core specification (RESO Transport Workgroup)
- Secrets Management Cheat Sheet (OWASP Foundation)
Last reviewed 2026-11-20