> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Mercury - How do I link my account?

# Overview

Mercury supports both a **production** and a **sandbox** environment. You can connect to either when setting up your integration.

### Instructions

#### Step 1: Choose your environment

**Sandbox**

Enter the following hostnames to use the Mercury sandbox:

| Field          | Value                        |
| -------------- | ---------------------------- |
| OAuth Hostname | `oauth2-sandbox.mercury.com` |
| API Hostname   | `api-sandbox.mercury.com`    |

**Production (default)**

Leave the **API Hostname** and **OAuth Hostname** fields empty. Nango will connect to the production environment automatically.

#### Step 2: Authorize Mercury

1. Open the form where you need to authenticate with Mercury.
2. Optionally fill in the **API Hostname** and **OAuth Hostname** fields. Leave them empty for production.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango/pS6Ui4FRO9ibcaX6/api-integrations/mercury/form.png?fit=max&auto=format&n=pS6Ui4FRO9ibcaX6&q=85&s=19911b50df1c7867c7280c33602556c5" style={{maxWidth: "450px" }} width="502" height="700" data-path="api-integrations/mercury/form.png" />

You are now connected to Mercury.
