> ## Documentation Index
> Fetch the complete documentation index at: https://nango-wari-migrated-bigcommerce-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-wari-migrated-bigcommerce-docs/SQGEy_hbAk3xfLIQ/api-integrations/torii/settings.png?fit=max&auto=format&n=SQGEy_hbAk3xfLIQ&q=85&s=5b503f081d4996010b97a92e76a9cabe" 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-wari-migrated-bigcommerce-docs/SQGEy_hbAk3xfLIQ/api-integrations/torii/generate_key.png?fit=max&auto=format&n=SQGEy_hbAk3xfLIQ&q=85&s=52b851664526f35920814fff4179200a" width="754" height="476" data-path="api-integrations/torii/generate_key.png" />

<img src="https://mintcdn.com/nango-wari-migrated-bigcommerce-docs/SQGEy_hbAk3xfLIQ/api-integrations/torii/generated_key.png?fit=max&auto=format&n=SQGEy_hbAk3xfLIQ&q=85&s=8716c75c585ecba14b8fad7f4c2eb164" 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-wari-migrated-bigcommerce-docs/SQGEy_hbAk3xfLIQ/api-integrations/torii/form.png?fit=max&auto=format&n=SQGEy_hbAk3xfLIQ&q=85&s=967ee58f103cc868943bdda20b47ca93" style={{maxWidth: "450px" }} width="1000" height="1382" data-path="api-integrations/torii/form.png" />

You are now connected to Torii.
