> ## Documentation Index
> Fetch the complete documentation index at: https://nango-marcin-get-deployments-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Torii - How do I link my account?

# Overview

To authenticate with Torii, you will need:

1. **API Key** - A key that grants secure access to the API, enabling authorized applications to interact with Torii resources and services.

This guide will walk you through generating your **API Key** in Torii.

### Prerequisites:

* You must have a Torii account

### Instructions:

#### Step 1: Generating Your API Key

1. Navigate to the [API Access page](https://app.toriihq.com/team/settings/apiAccess) in your Torii account.
2. Click **Generate API Key**.

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/HDUjkjftYIkgNPjA/api-integrations/torii/settings.png?fit=max&auto=format&n=HDUjkjftYIkgNPjA&q=85&s=66c288222d55ca5e7ddda28a7fbecf5c" width="991" height="310" data-path="api-integrations/torii/settings.png" />

3. Select the permission type for your API key.
4. Set an expiration date: For security purposes, Torii recommends setting an expiration date when generating a new API key.
   * Set a longer period to avoid frequent key regeneration.
   * The key will become inactive on the chosen expiration date.
   * Torii will send an email reminder one month prior to the expiration date to remind you to generate a new **API Key**.
5. Add a description for your **API Key** and click **Generate Key**.

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/HDUjkjftYIkgNPjA/api-integrations/torii/generate_key.png?fit=max&auto=format&n=HDUjkjftYIkgNPjA&q=85&s=a445ce2198acaf6daf520de7a053b84a" width="754" height="476" data-path="api-integrations/torii/generate_key.png" />

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/HDUjkjftYIkgNPjA/api-integrations/torii/generated_key.png?fit=max&auto=format&n=HDUjkjftYIkgNPjA&q=85&s=db3b1b4394faad13469fc1d5dfb5dfaa" width="953" height="232" data-path="api-integrations/torii/generated_key.png" />

<Tip>Once your API Key is generated, ensure you copy it to a secure location as it won't be shown again.</Tip>

#### Step 2: Enter credentials in the Connect UI

Once you have your **API Key**:

1. Open the form where you need to authenticate with Torii.
2. Enter your **API Key** in its respective field.
3. Submit the form, and you should be successfully authenticated.

<img src="https://mintcdn.com/nango-marcin-get-deployments-docs/HDUjkjftYIkgNPjA/api-integrations/torii/form.png?fit=max&auto=format&n=HDUjkjftYIkgNPjA&q=85&s=30165f85dd57621b005f2702d2770992" style={{maxWidth: "450px" }} width="1000" height="1382" data-path="api-integrations/torii/form.png" />

You are now connected to Torii.
