# Statsig

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

Statsig connects with a Console API key.

:::callout{type="info"}
- You need to be an Admin or Owner of the Statsig project. Teams are a Statsig Enterprise feature, so reading teams needs the Enterprise plan.
:::

## Install the Statsig integration

Install Statsig from [Available integrations](https://app.truto.one/integrations/available/c1d9b3b4-d8b8-4baf-bb27-c03f4da4cdf6) in each environment you connect accounts from.

## Generate a Console API key

1. Sign in to Statsig and click **Project Settings**.
   ![Project settings](https://docs-assets.truto.one/statsig-details-1.png)
2. Select **Keys & Environments**.
   ![Keys and environments](https://docs-assets.truto.one/statsig-details-5.png)
3. Click **Generate New Key**.
   ![Generate new key](https://docs-assets.truto.one/statsig-details-3.png)
4. Select **Console** as the key type and add a description. Choose read-only access, or read and write access. Click **Create**.
   ![Create key](https://docs-assets.truto.one/statsig-details-4.png)
5. Copy the key.

## Connect a Statsig 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 Statsig, 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 Statsig 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 **Statsig**.
5. Fill in the form and click **Connect**:

   | Field | Required | What to enter |
   |---|---|---|
   | **API Key** | Yes | Your Statsig Console API key. |
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.
