Skip to main content
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.

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.

  • Sign in to Snyk and look at your browser’s address bar.
  • Example: if the address bar shows https://app.snyk.io/..., the host is app.snyk.io — choose US (SNYK-US-01) — api.snyk.io.
  • app.snyk.ioUS (SNYK-US-01) — api.snyk.io
  • app.us.snyk.ioUS (SNYK-US-02) — api.us.snyk.io
  • app.eu.snyk.ioEU (SNYK-EU-01) — api.eu.snyk.io
  • app.au.snyk.ioAU (SNYK-AU-01) — api.au.snyk.io

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

Sign in to Snyk

Sign in to your Snyk account with a user that has the access you want the integration to have.

2

Open Personal Access Tokens

Open the Personal Access Tokens page
from the Account settings menu.

  • Under Generate personal access token (PAT), enter a name in the Name field.
3

Set an expiry

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

  • Choose one of 7 days, 30 days, 60 days, or 90 days, or pick a date from the calendar.
  • The maximum expiry is 90 days ahead.
4

Generate and copy the token

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

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

Linking the Account from the Hub

1

Navigate to the Hub

Use one of the three Linking Account Methods to access the Hub.
2

Fill out the fields

Fill out the following fields using details from your provider:
  • Region
  • Personal Access Token
3

Connect

  • Click Connect
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup

If the account linking is successful, you will see the newly linked account in your Accounts page.