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

# Connect Braintree with API Key (Basic Auth) – StackOne Hub

> Link a Braintree account in the StackOne Hub using API Key (Basic Auth). End-user guide to authorize the integration and start using Braintree actions.

<Warning>You will need a Braintree account with API key access. Sandbox and production use different credentials.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Prerequisites</h2>

  <p>Ensure you have a Braintree gateway account with access to the Control Panel.</p>

  <ul>
    <li>A Braintree sandbox or production account</li>
    <li>Access to the Braintree Control Panel</li>
  </ul>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find your Merchant ID</h2>

  <p>Locate your Merchant ID in the Braintree Control Panel.</p>

  <Steps>
    <Step title="Access Business Settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Navigate to the Merchant ID.</p>

        <ul>
          <li>Log in to the <a href="https://sandbox.braintreegateway.com/login" target="_blank" rel="noopener noreferrer">Braintree Control Panel</a></li>
          <li>Click the <strong>gear icon</strong> in the top right corner</li>
          <li>Select <strong>Business</strong></li>
          <li>Copy the <strong>Merchant ID</strong> displayed at the top of the page</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Generate API Keys</h2>

  <p>Create API keys for authentication.</p>

  <Steps>
    <Step title="Access API Settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Navigate to the API keys section.</p>

        <ul>
          <li>Click the <strong>gear icon</strong> in the top right corner</li>
          <li>Select <strong>API</strong> under the <strong>API Keys</strong> section</li>
          <li>Click <strong>Generate New API Key</strong> if no keys exist</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy Credentials">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy your public and private keys.</p>

        <ul>
          <li>Copy the <strong>Public Key</strong> from the API Keys listing</li>
          <li>Click <strong>View</strong> in the Private Key column to reveal and copy the <strong>Private Key</strong></li>
          <li>Store the Private Key securely as it should not be shared</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Merchant ID</strong></li>
        <li><strong>Public Key</strong></li>
        <li><strong>Private Key</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></li>
        <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
        <li>Once authorization is successful, you will see a confirmation popup</li>
      </ul>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
