> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Convex connection

> Learn how to configure a Convex Connection for Infisical.

Infisical supports the use of [personal access tokens](https://docs.convex.dev/dashboard/personal-access-tokens) to connect with your Convex account.

## Create a personal access token in Convex

**1. Navigate to Profile Settings**

Log in to the [Convex Dashboard](https://dashboard.convex.dev), select your profile avatar in the top right, and select **Profile Settings**.

![Profile Settings](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/convex/01-profile-settings.png)

**2. Create a Personal Access Token**

Scroll down to the **Personal Access Tokens** section and click the **+ Create Token** button.

![Create Token](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/convex/02-create-token.png)

**3. Configure the Token**

Enter a **Token Name** (e.g. `infisical`) and select an **Expiration** period, then click **Create**.

> [!WARNING]
>
> If the personal access token expires, any secret rotations relying on this connection will fail. We recommend setting a long expiration or selecting **No expiration** to avoid disruptions.

![Fill and Create Token](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/convex/03-fill-and-create-token.png)

**4. Copy the Token**

Copy the generated token and store it securely. You will not be able to see it again. You will need it to configure the Convex connection in Infisical.

![Copy Token](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/convex/04-copy-token.png)

## Setup Convex connection in Infisical

**1. Navigate to App Connections**

Navigate to the **App Connections** tab in your organization and select **+ Add Connection**.

![Select Convex Connection](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/convex/05-select-convex.png)

**2. Create the Connection**

Select the **Convex** option, fill in the connection **Name**, select the **Personal Access Token** method, paste the **Access Token** you copied earlier, and click **Connect to Convex**.

Optionally, you can provide an **Instance URL** if you are self-hosting Convex. If left empty, `https://api.convex.dev` is used by default.

![Create Convex Connection](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/convex/06-create-app-connection.png)

**3. Connection Created**

Your **Convex Connection** is now available for use.

![Convex Connection Created](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/convex/07-created-app-connection.png)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.