# Going live Everything you build runs first on the [sandbox](sandbox.md), with test keys, for free. Going live gives your account live keys, which return real Bright MLS listings. This guide says who can go live, what you are asked for, what happens then, and what changes in your code: the keys, and nothing else. ## Before you ask - **Build and test on the sandbox.** It answers exactly like live: the same endpoints, the same fields, the same errors. Test the [listings that never change](sandbox.md#listings-that-never-change): a hidden address, Coming Soon, Closed, a listing with no price. Your pages must handle each one before real listings reach them ([compliance](compliance.md)). - **You need a Bright MLS membership.** Live data is Bright's, licensed to its member brokers and their agents. You apply as an agent, with your Bright member ID, or as a broker, with your office ID. Your broker must have approved the IDX feed with Bright for this use. ## Ask to go live In the [portal](https://app.apidata.one), an Owner of the account opens **Go live** and gives: | What | Notes | | --- | --- | | Agent or broker | Which of the two you apply as | | Your Bright member ID (agents) or office ID (brokers) | It is checked against Bright's own list of members | | Your brokerage's name, exactly as licensed | It is shown in the disclosures on your pages, so it must match your licence | | The states you are licensed in | Two-letter codes | | The websites that will use the data | Each one's address, such as `https://www.example.com`. A publishable live key works from these addresses only | | A phone number | So that we can reach you about the request | | The tier | Basic or Premium | | Your broker's approval | A box you tick: your broker approved the IDX feed with Bright for this use | Then add a card on the **Billing** page. The card is entered on Stripe's own page, never on apidata.one, and **nothing is charged until your request is approved.** Each request is looked at by a person. Until it is decided, your sandbox works as before, and you can change the request. A live key on an account that is not approved yet answers [`403 account_pending`](../errors/account_pending.md). ## When it is decided - **Approved:** the first month is charged to your card, and the account's Owners are emailed. If the charge fails, the account is approved but can make no live key until it is paid: fix the card on the Billing page. - **Declined:** the Owners are emailed the reason. Nothing is charged, your sandbox stays, and you can correct the request and send it again. ## Make your live keys Live keys are made on the account's **Live keys** page, by an Owner or a Developer: - **Everyone in the account needs a second sign-in step first:** an authenticator app or a passkey. From the account's first live key on, the portal asks every member for it, and making a key asks for it again if you last passed it more than 15 minutes ago. - **A key is shown once.** Copy it then. It is stored only as a hash, so nobody can show it to you again: **if you lose a key, revoke it and make another.** - An account holds up to 10 live keys that are not revoked. Revoking one takes effect on the next request. - The account's Owners get an email whenever a live key is made. ## Change your code: the keys Swap each `_test_` key for its `_live_` key: `sk_live_…` on your server, `pk_live_…` in the browser. **Nothing else changes**: the host, every path and every field stay the same, and a place ID you found in the sandbox is the same place on live. What is different about live data: - **Listings are real,** and their keys are digits, not `SBX…`. Treat a listing key as text. - **A publishable live key works only from the website addresses your request named,** matched exactly on scheme, host and port: `https://www.example.com` does not cover `https://example.com`. `localhost` is for test keys only ([authentication](../concepts/authentication.md#browsers-and-domains)). To add or change a live address after approval, write to support@apidata.one. - **The 12-hour stop applies.** If live data could not be refreshed for 12 hours, listing routes answer [`500 data_stale`](../errors/data_stale.md) until it is fresh again. Show "temporarily unavailable", never a copy you kept. - **Every removal reaches you.** A live account gets a `listing.removed` [notice](../concepts/webhooks.md) for every listing that leaves the data. Delete every copy you stored when it arrives. - **Search engines and other crawlers count.** Every page a crawler fetches from your site makes your site call the API, and those calls count against your keys' [limits](../concepts/rate-limits.md) like any others ([an SEO-friendly site](seo.md)). ## Billing, in short The [terms](https://apidata.one/terms/) hold the full rules. In short: - **Basic is $99 a month and Premium $199 a month,** plus applicable tax, billed monthly. - **Changing plan** is done on Stripe's billing page, which the portal's Billing page opens. An upgrade applies at once, a downgrade at the end of the month you paid for. - **If a renewal payment fails,** your live keys keep working for 7 days while the card is tried again. If it is still unpaid then, the account is suspended until the payment goes through, and it is lifted by itself when it does. If the payment has not succeeded within 14 days, the subscription ends and nothing more is charged. - **Cancelling** is done on the same page. Live access goes on until the end of the month you paid for; there is no refund for part of a month. Then the account is suspended. - **Your sandbox and your test keys stay,** whatever happens to the live account. ## While an account is suspended A suspension stops live listing data and keeps everything else, so that you and your visitors lose nothing by it: - Data routes answer [`403 account_suspended`](../errors/account_suspended.md). `GET /v1/account`, reading and deleting your visitors' saved data, and minting client tokens keep working, so you can still export or delete what they saved. - Saved searches read `paused_suspended` and make no notices, and nothing is sent to your webhook endpoints. An `account.suspended` notice is recorded when it starts. - **Your keys are kept.** After a subscription has ended, your keys and your visitors' saved data are kept for 90 days from the suspension, in case you come back. Then your visitors' data is deleted. Closing the account in the portal deletes everything sooner. **Coming back** after a subscription ended: ask to go live again on the same page. When the request is approved and the new subscription's first month is paid, the suspension lifts and **the same live keys work again**. An `account.reinstated` notice is recorded, notices more than 24 hours old are dropped, and your site must then [re-check the listings it stored](../concepts/webhooks.md#suspension-and-reinstatement). An account is also suspended, whatever its payments, when its agent or broker is no longer on Bright's list of members, and reinstated when they are back on it. ## Checklist - [ ] Every page tested on the sandbox against the listings that never change - [ ] The request sent from **Go live**, and a card added on **Billing** - [ ] After approval: a second sign-in step for everyone in the account - [ ] Live keys made, copied once, `sk_live_…` kept on the server only - [ ] Your website addresses on the account exactly as visitors' browsers send them - [ ] A handler for `500 data_stale` and one for `listing.removed`