> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mitu.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mitu.ai/_mcp/server.

# Test and live

Mitu provides two separate environments. The sandbox is where you build and test your integration, with every flow available and no real money moving. Production is where real customers and agents pay your business. The two are fully separated, so nothing you do while testing can affect live customers, payments or records.

The environment is determined by the API key your servers use rather than by a setting in the dashboard. The same account can therefore run a test integration and a live one side by side, and moving to production requires no change to your code beyond the key it uses.

| Environment | Selected by    | API address               | Purpose                                   |
| ----------- | -------------- | ------------------------- | ----------------------------------------- |
| Sandbox     | A test API key | `https://sandbox.mitu.ai` | Building and testing, without real money. |
| Production  | A live API key | `https://api.mitu.ai`     | Serving real customers and agents.        |

## Moving from test to live

#### Create a test key

Under **API keys** in the [Mitu dashboard](https://app.mitu.ai), create a key and choose **Test** as its environment. New keys default to **Live**, so confirm the environment before you create one.

#### Build against the sandbox

Send requests made with your test key to the sandbox address. The [SDKs](/sdks/overview) select the correct environment from the key automatically, so with an SDK you change only the key.

#### Test every flow end to end

Exercise each flow your business relies on in the sandbox, including payments, notifications, retries and failure cases, so that production behaves exactly as you have already seen it behave.

#### Go live

When your integration is complete and your business has been verified, create a live key, deploy it to your production servers and direct them to the production address.

## Environment practices

1. **Keep keys in separate environments**\
   Give test and live keys only to the corresponding environments in your own infrastructure, so a test system can never act on live data.
2. **Register an endpoint per environment**\
   Each webhook endpoint belongs to one environment, so register a separate endpoint for test and for live traffic.
3. **Never test with a live key**\
   Testing with a live key moves real money and creates real records. Use the sandbox for every test, however small.

Separating test and live in this way lets your team develop and test with complete freedom, while production remains untouched until you deliberately move to it.