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

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

<Warning>Only admins can create API tokens. Team leads can view existing tokens.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Create an API token</h2>

  <p>Use either a global API token or an Uptime API token for the team you want to review.</p>

  <Steps>
    <Step title="Open API tokens">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>In Better Stack, go to <strong>Settings</strong> > <strong>API tokens</strong>.</p>
      </div>
    </Step>

    <Step title="Copy a token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Copy a token from <strong>Global API tokens</strong>, or pick your team under <strong>Team-based tokens</strong> and copy a token from <strong>Uptime API tokens</strong>.</p>
      </div>
    </Step>

    <Step title="Enter the team name if needed">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>If you use a global API token and your organization has more than one team, enter the exact name of the team to review in <strong>Team Name</strong>.</p>
      </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="/connect/managing-connectors/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 Token</strong></li>
        <li><strong>Team Name</strong> (Optional)</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="/gateway/concepts/linked-accounts">Accounts</a> page.</p>
</div>
