> ## 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 Snyk with Personal Access Token – StackOne Hub

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

<Warning>Snyk REST API access requires an Enterprise plan — on Free and Team plans this token authenticates only the CLI, IDE, and CI/CD integrations, not the API. A Personal Access Token authorizes API calls with the permissions of its owner and can be given an expiry date. It only authenticates against the region it was created in, so it must match the region you select.</Warning>

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

  <p>Snyk hosts accounts in several regional data centers, and a token only works against<br />its own region. Your region is shown in your browser's <strong>address bar</strong> whenever you are<br />signed in to Snyk — it is the host in the URL, the part between `https://` and the first<br />`/`. Match that host to the <strong>Region</strong> you select below.</p>

  <ul>
    <li>Sign in to Snyk and look at your browser's address bar.</li>
    <li>Example: if the address bar shows `https://app.snyk.io/...`, the host is `app.snyk.io` — choose <strong>US (SNYK-US-01) — api.snyk.io</strong>.</li>
    <li>`app.snyk.io` → <strong>US (SNYK-US-01)</strong> — api.snyk.io</li>
    <li>`app.us.snyk.io` → <strong>US (SNYK-US-02)</strong> — api.us.snyk.io</li>
    <li>`app.eu.snyk.io` → <strong>EU (SNYK-EU-01)</strong> — api.eu.snyk.io</li>
    <li>`app.au.snyk.io` → <strong>AU (SNYK-AU-01)</strong> — api.au.snyk.io</li>
  </ul>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Create a Personal Access Token</h2>

  <p>A <strong>Personal Access Token</strong> authenticates every REST API request and can carry an expiry date.<br />You can have up to three active tokens.</p>

  <Steps>
    <Step title="Sign in to Snyk">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to your <a href="https://app.snyk.io" target="_blank" rel="noopener noreferrer">Snyk account</a> with a user that has the access you want the integration to have.</p>
      </div>
    </Step>

    <Step title="Open Personal Access Tokens">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Open the <a href="https://app.snyk.io/account/personal-access-tokens" target="_blank" rel="noopener noreferrer">Personal Access Tokens page</a><br />from the <strong>Account settings</strong> menu.</p>

        <ul>
          <li>Under <strong>Generate personal access token (PAT)</strong>, enter a name in the <strong>Name</strong> field.</li>
        </ul>

        <img src="https://mintcdn.com/stackone-60/AjtQEpho9iXred9T/connectors/snyk/images/custom-config-pat-create.png?fit=max&auto=format&n=AjtQEpho9iXred9T&q=85&s=4e724ec4688e2a4682b16e32d4827d87" alt="The Snyk Personal Access Tokens page showing the Name field, the Expiry picker and the Generate new token button highlighted." width="1280" height="800" data-path="connectors/snyk/images/custom-config-pat-create.png" />
      </div>
    </Step>

    <Step title="Set an expiry">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Open the <strong>Expiry</strong> picker and choose how long the token stays valid.</p>

        <ul>
          <li>Choose one of <strong>7 days</strong>, <strong>30 days</strong>, <strong>60 days</strong>, or <strong>90 days</strong>, or pick a date from the calendar.</li>
          <li>The maximum expiry is 90 days ahead.</li>
        </ul>

        <img src="https://mintcdn.com/stackone-60/AjtQEpho9iXred9T/connectors/snyk/images/custom-config-pat-expiry.png?fit=max&auto=format&n=AjtQEpho9iXred9T&q=85&s=18fb4694517cc6c3ff6885e1ccc08086" alt="The Expiry picker open on the Snyk Personal Access Tokens page with the 7, 30, 60 and 90 day options highlighted." width="1280" height="800" data-path="connectors/snyk/images/custom-config-pat-expiry.png" />
      </div>
    </Step>

    <Step title="Generate and copy the token">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>Generate new token</strong>, then copy the value from the dialog.</p>

        <ul>
          <li>In the dialog, the message reads <strong>Copy your personal access token now.</strong> and <strong>You won't be able to retrieve this token later.</strong></li>
          <li>Click <strong>Copy</strong>, then store the token securely — the token is shown only once and cannot be retrieved later.</li>
          <li>You provide this token together with the matching <strong>Region</strong> you identified above.</li>
        </ul>

        <img src="https://mintcdn.com/stackone-60/AjtQEpho9iXred9T/connectors/snyk/images/custom-config-pat-copy.png?fit=max&auto=format&n=AjtQEpho9iXred9T&q=85&s=22ca988c5a2af448426f42a847aacf57" alt="The generated Personal Access Token dialog with the token value masked and the Copy button highlighted." width="1280" height="800" data-path="connectors/snyk/images/custom-config-pat-copy.png" />
      </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>Region</strong></li>
        <li><strong>Personal Access Token</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="/gateway/concepts/linked-accounts">Accounts</a> page.</p>
</div>
