Skip to main content

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

Step 1: Choose your environment

Pick the environment where you create your API token: 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.

Step 2: Create an API token

  1. Sign in to Mercury (production or sandbox), 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
  1. 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
  1. Copy the token. It starts with secret-token: and is only shown once.
Mercury dialog showing the new API token to copy

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 You are now connected to Mercury.