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

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

<section data-guide-section data-guide-scopes="">
  <h2>Generate a Personal API key</h2>

  <p>A Personal API key authenticates requests to Linear on behalf of your account.</p>

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

        <ul>
          <li>Click your avatar in the top-left corner and select <strong>Settings</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Navigate to API keys">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>In the left sidebar, click <strong>Security & Access</strong> under your personal settings.</p>

        <ul>
          <li>Scroll to the <strong>Personal API keys</strong> section.</li>
        </ul>
      </div>
    </Step>

    <Step title="Create and copy the key">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>New API key</strong>, set a <strong>Key name</strong> (e.g., `StackOne`), and choose the access settings for the key.</p>

        <ul>
          <li>Under <strong>Permissions</strong>, choose <strong>Full access</strong> or <strong>Only select permissions...</strong></li>
          <li>Under <strong>Team access</strong>, choose <strong>All teams you have access to</strong> or <strong>Only select teams...</strong></li>
          <li>Copy the key immediately and store it securely for use later.</li>
          <li>The key starts with `lin_api_` and is shown only once.</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>
      </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>
