> 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.

# Get your API keys

An API key identifies your business to Mitu and carries the full authority of your account, so it belongs only on your own servers. Test keys work in the sandbox, where no real money moves, and live keys work in production. Build with a test key and create a live key once your integration is ready.

#### Open API keys in the dashboard

Sign in to the [Mitu dashboard](https://app.mitu.ai) and select **API keys** under **Developer** in the sidebar. This page lists every key on your account and shows when each one was last used.

#### Create a new key

Select **New key**, choose whether it is a test key or a live key, and name it after the service that will use it, so you can identify it later.

> **Warning**
>
> The full key is shown only once. Copy it before you leave the page.

#### Store the key securely

Keep the key in an environment variable or your platform's secrets manager rather than in your code. It should never be committed to source control or shipped in a browser or mobile app.

```bash
export MITU_API_KEY="your_api_key"
```

#### Use the key

Your servers send the key with every request to Mitu. See [authentication](/api-reference/authentication) in the API reference to call the API directly, or pass the key to one of the [SDKs](/sdks/overview) when you create its client. Each request made with your keys appears under **Logs** in the dashboard.

> **If a key is exposed**
>
> Revoke it from the **API keys** page and requests made with it will be rejected. Deploy a replacement key first so your integration keeps running.

Your servers can now authenticate with Mitu. Next, accept your first payment, either [with a payment link](/guides/get-started/accept-your-first-payment/with-a-payment-link) or [for an API request](/guides/get-started/accept-your-first-payment/for-an-api-request).