# Snyk

> Source: https://truto.one/docs/integration-guides/snyk/

Snyk connects with your API token and the region your Snyk account is in.

:::callout{type="info"}
Snyk's API is available on the Enterprise plan only. For Truto, use a service account token rather than a personal one.
:::

## Install the Snyk integration

Install Snyk from [Available integrations](https://app.truto.one/integrations/available/0c8d15da-600d-4c2f-8145-e632921f1e75) in each environment you connect accounts from.

## Copy your API token

Create a service account: in your Snyk organization, open **Settings** → **Service accounts** and click **Create a service account**. Enter a name, pick a role and click **Create**. Copy the token straight away; Snyk shows it only once. You need the Org Admin role, or to be a Group admin.

To use your personal token instead:

1. Sign in to Snyk and open **Account settings**.
   ![Account settings](https://docs-assets.truto.one/snyk-details-1.png)
2. Select **General** → **Auth Token**.
3. Click inside the key box to show the token, then copy it.
   ![Auth token](https://docs-assets.truto.one/snyk-details-2.png)

## Connect a Snyk account

1. In [Integrated Accounts](https://app.truto.one/integrated-accounts), click **Connect Account**.
   ![Click Connect Account](https://docs-assets.truto.one/truto-connect-account.png)
2. Enter a **Tenant ID** (your customer's ID; Truto creates the tenant if it is new), or pick one under **Existing tenant (optional)**. Check the **Environment** and the **Region** (where Truto places the account; Western North America by default). To open the link straight on Snyk, pick it under **Advanced settings** → **Integration (optional)**. Click **Get connection link**.
   ![Get connection link](https://docs-assets.truto.one/truto-connect-account-modal.png)
3. Click the open-in-new-tab button, or click **Copy** and send the link to your customer so they connect their own Snyk account. The link works for 7 days, until an account is connected with it.
   ![Share connection link](https://docs-assets.truto.one/truto-connect-account-link.png)
4. Click **Get Started** if it shows, then select **Snyk**.
5. Fill in the form and click **Connect**:

   | Field | Required | What to enter |
   |---|---|---|
   | **API Key** | Yes | Your Snyk service account token or personal API token. |
   | **Datacenter Region** | Yes | Your Snyk region. It shows in the Snyk URL in your browser. Pick one of **US-02**, **AU-01**, **EU-01**, **US-01**. Defaults to **US-01**. |
6. Close the tab when you see **Connection successful**. The new account appears under **Integrated Accounts**. Click its Account ID to see its details and make API calls.
