> ## 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 (API Token) - How do I link my account?

## Overview

To authenticate with Mercury, you need:

1. **Environment** — the Mercury API host your token belongs to (production or sandbox).
2. **API Token** — a Mercury API token.

This guide will show you how to get them.

### Prerequisites

* A Mercury account. To test, you can [sign up for a sandbox account](https://sandbox.mercury.com/signup), which comes with dummy data.

### Step 1: Choose your environment

Pick the environment where you create your API token:

| Environment | Value to select |
| - | - |
| Production (app.mercury.com) | `api.mercury.com` |
| Sandbox (sandbox.mercury.com) | `api-sandbox.mercury.com` |

Production and sandbox tokens are not interchangeable: a token created in production won't work in the sandbox. See [Using the Mercury Sandbox for Testing](https://docs.mercury.com/docs/using-mercury-sandbox).

### Step 2: Create an API token

1. Sign in to Mercury ([production](https://app.mercury.com) or [sandbox](https://sandbox.mercury.com)), click your organization name at the top left, then click **All Settings**.
2. In the left navigation, under **API**, click **Tokens**, then click **Create an API token**.

![Tokens page in Mercury settings with the Create an API token button](https://mintcdn.com/nango/HUF1ZgjQC2wd7BJc/api-integrations/mercury-api-key/api_tokens_page.png?fit=max\&auto=format\&n=HUF1ZgjQC2wd7BJc\&q=85\&s=ae3e1eb2e0b56e6bda32688219a020bd)

3. Enter a nickname and choose the permissions your integration needs (**Read Only**, **Read and Write** or **Custom Scopes**). Leave **IP whitelist** empty, then click **Create token**.

![Mercury token creation dialog with nickname, permissions and IP whitelist fields](https://mintcdn.com/nango/HUF1ZgjQC2wd7BJc/api-integrations/mercury-api-key/create_token_dialog.png?fit=max\&auto=format\&n=HUF1ZgjQC2wd7BJc\&q=85\&s=a4630bc65de9ae2bf75e3c21f9f09f42)

4. Copy the token. It starts with `secret-token:` and is only shown once.

![Mercury dialog showing the new API token to copy](https://mintcdn.com/nango/HUF1ZgjQC2wd7BJc/api-integrations/mercury-api-key/api_token_created.png?fit=max\&auto=format\&n=HUF1ZgjQC2wd7BJc\&q=85\&s=78b74017a5a357bb9186190f5cc9212e)

### Step 3: Enter your credentials in the Connect UI

1. Open the form where you need to authenticate with Mercury.
2. Select your **Environment** and enter your **API Token**, including the `secret-token:` prefix.
3. Submit the form, and you should be successfully authenticated.

![Mercury (API Token) connection form in the Nango Connect UI](https://mintcdn.com/nango/HUF1ZgjQC2wd7BJc/api-integrations/mercury-api-key/form.png?fit=max\&auto=format\&n=HUF1ZgjQC2wd7BJc\&q=85\&s=1effcfd52979f3f59248fed52b0613fc)

You are now connected to Mercury.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.