> ## 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 Segment with API Token – StackOne Hub

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

<Warning>The Public API is available only on Team and Business tier workspaces. Only a Workspace Owner can create a Public API token.</Warning>

<section data-guide-section data-guide-scopes="">
  <h2>Generate a Public API token</h2>

  <p>The Public API token authenticates every request and is scoped to a single Segment workspace.</p>

  <Steps>
    <Step title="Sign in to Segment">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://app.segment.com" target="_blank" rel="noopener noreferrer">Segment account</a>. If your workspace is in the EU, sign in at <a href="https://eu1.app.segment.com" target="_blank" rel="noopener noreferrer">eu1.app.segment.com</a>.</p>

        <ul>
          <li>Click <strong>Settings</strong> in the left navigation to open Workspace settings.</li>
          <li>Open the <strong>Access Management</strong> tab.</li>
          <li>Click <strong>Tokens</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Create the token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Create a new token and grant it the workspace access it needs.</p>

        <ul>
          <li>Click <strong>+ Create Token</strong>.</li>
          <li>Select <strong>Public API token</strong> (not Config API token).</li>
          <li>Enter a description, then assign the token either <strong>Workspace Owner</strong> or <strong>Workspace Member</strong> access.</li>
          <li>Click <strong>Create</strong>.</li>
          <li>Copy the token somewhere secure, then click <strong>Done</strong> — it is shown only once.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

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

  <p>Your region is the data residency where your Segment workspace is hosted. It determines which API host StackOne calls.</p>

  <ul>
    <li>Check the app URL in your browser address bar when signed in to Segment.</li>
    <li>Example: if your URL is `https://eu1.app.segment.com/...`, select <strong>European Union</strong>; otherwise select <strong>United States</strong>.</li>
    <li>United States is the default — new workspaces use US infrastructure unless the EU region was selected at creation.</li>
  </ul>
</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>Public API Token</strong></li>
        <li><strong>Region</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>
