> ## 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 (Multiple Companies) – StackOne Hub

> Link a Snyk account in the StackOne Hub using Personal Access Token (Multiple Companies). 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. Listing people needs a Group-level role with the View Group Memberships and View Organizations permissions. Snyk's pre-defined roles table does not say which Group roles hold View Group Memberships. Group Viewer is read-only; if StackOne reports a 403, use Group Admin. Snyk's API reference says the role list needs read access to the Group. A token with only Organization roles cannot read them.

## Find your Snyk region

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

<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 **US (SNYK-US-01) — api.snyk.io**.</li>
  <li>`app.snyk.io` → **US (SNYK-US-01)** — api.snyk.io</li>
  <li>`app.us.snyk.io` → **US (SNYK-US-02)** — api.us.snyk.io</li>
  <li>`app.eu.snyk.io` → **EU (SNYK-EU-01)** — api.eu.snyk.io</li>
  <li>`app.au.snyk.io` → **AU (SNYK-AU-01)** — api.au.snyk.io</li>
</ul>

## Create a Personal Access Token

A **Personal Access Token** authenticates every REST API request and can carry an expiry date.\
You can have up to three active tokens.

**1. Open Personal Access Tokens**

Sign in to your [Snyk account](https://app.snyk.io) with a user that has the access you\
want the integration to have. The **Personal Access Tokens** page lives inside **Account\
settings**, which you open from your profile menu at the bottom of the left sidebar.

<ul>
  <li>At the bottom of the left sidebar, click your profile name to open the account menu, then click **Account settings**.</li>
  <li>On the **Account settings** page, click **Personal Access Tokens** in the left sidebar.</li>
  <li>As a shortcut, go straight to the [Personal Access Tokens page](https://app.snyk.io/account/personal-access-tokens) to skip the menu.</li>
  <li>Under **Generate personal access token (PAT)**, enter a name in the **Name** field.</li>
</ul>

![The Snyk Personal Access Tokens page showing the Name field, the Expiry picker and the Generate new token button highlighted.](https://mintcdn.com/stackone-60/AjtQEpho9iXred9T/connectors/snyk/images/custom-config-pat-create.png?fit=max\&auto=format\&n=AjtQEpho9iXred9T\&q=85\&s=4e724ec4688e2a4682b16e32d4827d87)

**2. Set an expiry**

Open the **Expiry** picker and choose how long the token stays valid.

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

![The Expiry picker open on the Snyk Personal Access Tokens page with the 7, 30, 60 and 90 day options highlighted.](https://mintcdn.com/stackone-60/AjtQEpho9iXred9T/connectors/snyk/images/custom-config-pat-expiry.png?fit=max\&auto=format\&n=AjtQEpho9iXred9T\&q=85\&s=18fb4694517cc6c3ff6885e1ccc08086)

**3. Generate and copy the token**

Click **Generate new token**, then copy the value from the dialog.

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

![The generated Personal Access Token dialog with the token value masked and the Copy button highlighted.](https://mintcdn.com/stackone-60/AjtQEpho9iXred9T/connectors/snyk/images/custom-config-pat-copy.png?fit=max\&auto=format\&n=AjtQEpho9iXred9T\&q=85\&s=22ca988c5a2af448426f42a847aacf57)

## Find your Group ID

StackOne lists the people of one Snyk Group. If your token sees only one Group you can leave the **Group ID** field empty; if it sees several, enter the one to read. If you use a Group service account token, enter the Group ID.

**1. Copy your Group ID**

Open your Group's **Settings** > **General** page and find **Group ID**, which Snyk describes as "View and copy the unique ID for this Group." Copy the value across.

## Find your Organization ID

If you plan to enable webhook events, StackOne needs your Snyk **Organization ID** to provision the webhook subscription. It is not required for any other actions.

**1. Copy your Organization ID**

Open your organization's **Settings** page and select **General**, then scroll to the **Organization ID** section and click **Copy**.

<ul>
  <li>The **Organization ID** is a UUID that uniquely identifies your organization.</li>
  <li>As a shortcut, open the **General** settings page at the `/manage/settings` path for your organization and scroll to the **Organization ID** section.</li>
</ul>

![The Snyk organization General settings page with the Organization ID section and its Copy button highlighted.](https://mintcdn.com/stackone-60/FXLWOPFBt8Ltxzf4/connectors/snyk/images/custom-config-org-id.png?fit=max\&auto=format\&n=FXLWOPFBt8Ltxzf4\&q=85\&s=3a0a52e10da8ae4adbea2a0c281a39fa)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</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>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/snyk/guides/webhook-setup.md)
>
> Configure receiving Events for Snyk into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.