> ## 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 Chargebee with API Key – StackOne Hub

> Link a Chargebee account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using Chargebee actions.

<Warning>You need admin access to your Chargebee site to generate API keys.</Warning>

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

  <p>An API key authenticates requests to the Chargebee API. You'll need to create one in your Chargebee site settings.</p>

  <Steps>
    <Step title="Sign in to Chargebee">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://app.chargebee.com/" target="_blank" rel="noopener noreferrer">Chargebee account</a>.</p>

        <ul>
          <li>Click <strong>Settings</strong> in the left sidebar.</li>
          <li>Navigate to <strong>Configure Chargebee</strong> > <strong>API Keys and Events</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Create and copy key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>API Keys</strong>, then click <strong>Add API Key</strong>.</p>

        <ul>
          <li>Select <strong>Full Access</strong> as the key type, then select <strong>All</strong> — this allows full access to your Chargebee site and is recommended if you're using the API key with your own application server.</li>
          <li>Enter a name for the API key in the <strong>Name the API Key</strong> field (required).</li>
          <li>Click <strong>Create Key</strong> to generate the key.</li>
          <li>Copy the key immediately and store it securely for use later.</li>
          <li>API keys are environment-specific — use the test site key for development and the live site key for production.</li>
          <li>Keys start with `live_` (production) or `test_` (test site).</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find Your Site Name</h2>

  <p>Your site name is the subdomain in your Chargebee URL. You'll need this when connecting to StackOne.</p>

  <Steps>
    <Step title="Locate your site name">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Check your browser address bar when signed in to Chargebee.</p>

        <ul>
          <li>Format: `https://{site-name}.chargebee.com`</li>
          <li>Example: if your URL is `https://acme-test.chargebee.com`, your site name is `acme-test`</li>
          <li>Test sites typically end with `-test` (e.g., `acme-test`), live sites use your chosen name (e.g., `acme`)</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>API Key</strong></li>
        <li><strong>Site Name</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>
