# Harness

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

Harness connects with an API key token and your Harness base URL.

:::callout{type="info"}
- You need the Account Admin role in Harness.
:::

## Install the Harness integration

Install Harness from [Available integrations](https://app.truto.one/integrations/available/4e8da4be-2b4a-404e-bea7-10305de3046a) in each environment you connect accounts from.

## Create an API key and token

1. Sign in to Harness and open your user profile.
2. Under **My API Keys**, select **API Key**. Enter a **Name**; **Description** and **Tags** are optional. Click **Save**.
   ![New API key](https://docs-assets.truto.one/harness-details-1.png)
3. Under the new key, select **Token**. Enter a **Name**.
   ![New token](https://docs-assets.truto.one/harness-details-2.png)
4. To make the token expire, select **Set Expiration Date** and enter a date. Click **Generate Token**.
   ![Generate token](https://docs-assets.truto.one/harness-details-3.png)
5. Copy the token.

The **Base URL** is the address of Harness in your browser, for example `https://app.harness.io`.

![Base URL](https://docs-assets.truto.one/harness-details-4.png)

## Connect a Harness account

1. Click **Connect Account**.
   ![Click Connect Account](https://docs-assets.truto.one/truto-connect-account.png)
2. Enter a Tenant ID. This can be any ID you choose. Click **Get connection link**.
   ![Get connection link](https://docs-assets.truto.one/truto-connect-account-modal.png)
3. Open the generated link. You can also share it with your customer so they connect their own Harness account.
   ![Share connection link](https://docs-assets.truto.one/truto-connect-account-link.png)
4. Select **Harness**.
5. Fill in the form and click **Connect**:

   | Field | Required | What to enter |
   |---|---|---|
   | **API Key** | Yes | The token from [Create an API key and token](#create-an-api-key-and-token). |
   | **Base URL** | Yes | The Harness address in your browser, for example `https://app.harness.io`. |
6. Close the tab when you see the connection successful message. The new account appears under **Integrated Accounts**. Click its Account ID to see its details and make API calls.
