Environments and projects

Each project runs in a sandbox or a live environment. Sandbox checks use test data and are not billed; live checks are charged to the account's prepaid balance.

What an environment is

An environment is a property of a project. A project is either in the sandbox environment or in the live environment, and a new project starts in the sandbox. The console shows the environment as a Sandbox or Production badge in the header.

API keys belong to a project and carry no environment of their own: the project environment decides which checks the key starts. A session records the environment whose key created it, so its webhook pairs on the same environment even if the project changes later.

Sandbox

Use the sandbox while you build and test. Sandbox checks use test data. They are not billed, and nothing is set aside from the prepaid balance for them. The API calls are the same as for real checks; only the data and the charge differ. See Test in sandbox before going live.

Live

The live environment is for real checks with real users. When the account's prepaid balance covers the price of a live check, the price is set aside from the balance before the check runs. When the balance does not cover the price, nothing is set aside from it. See Billing for the price and for when a charge is kept or refunded.

The prepaid balance belongs to the account, so projects in one account share one balance. A project that runs live checks needs two things:

  • A live key: a real check runs with a key for the project's live environment: the project's own production key, the older key a project provisioned before the split may still hold, or the platform production key. A project with no usable key for its environment cannot start a session: the API answers 503 with Verification not configured for this project. A sandbox project never falls back to a production key.
  • A linked billing account: live checks are billed to the account's prepaid balance, so the account must be linked to a billing account. The link is checked when a project is set to live, and top-ups are refused without it.

Changing the environment

The environment is set on the project. The console shows it as a badge and does not offer a control to change it today. If a project needs to go live, write to hello@mudbase.dev with the project name and what you plan to run.

Related pages