> ## 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.

# Supabase connection

> Learn how to configure a Supabase Connection for Infisical.

Infisical supports the use of [Personal Access Tokens](https://supabase.com/dashboard/account/tokens) to connect with Supabase.

## Create a Supabase personal access token

**1. Click the profile image in the top-right corner and select 'Account Preferences'**

![Account Preferences](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/supabase/app-connection-user-settings.png)

**2. In the sidebar, select 'Access Tokens'**

![Settings Page](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/supabase/app-connection-api-keys.png)

**3. In the access tokens page, click on 'Generate New Token'**

![Access Tokens Page](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/supabase/app-connection-create-api-key.png)

**4. Enter a token name and click on 'Generate Token'**

Provide a descriptive name for the token.

![Enter Name](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/supabase/app-connection-create-form.png)

**5. Copy the generated token and save it**

![Create Token](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/supabase/app-connection-key-generated.png)

## Create a Supabase connection in Infisical

> [tab] Infisical UI
>
> **1. Navigate to App Connections**
>
> In your Infisical dashboard, navigate to the **Integrations** tab in the desired project, then select **App Connections**.
>
> ![App Connections Tab](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/general/add-connection.png)
>
> **2. Select Supabase Connection**
>
> Click **+ Add Connection** and choose **Supabase Connection** from the list of integrations.
>
> ![Select Supabase Connection](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/supabase/app-connection-option.png)
>
> **3. Fill out the Supabase Connection form**
>
> Complete the form by providing:
>
> * A descriptive name for the connection
> * An optional description
> * Supabase instance URL (e.g., `https://your-domain.com` or `https://api.supabase.com`)
> * The Access Token value from the previous step
>
>   ![Supabase Connection Modal](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/supabase/app-connection-form.png)
>
> **4. Connection created**
>
> After submitting the form, your **Supabase Connection** will be successfully created and ready to use with your Infisical project.
>
> ![Supabase Connection Created](https://mintlify.s3.us-west-1.amazonaws.com/infisical/images/app-connections/supabase/app-connection-generated.png)

> [tab] API
>
> To create a Supabase Connection via API, send a request to the [Create Supabase Connection](https://infisical.com/docs/api-reference/endpoints/app-connections/supabase/create.md) endpoint.
>
> ### Sample request
>
> ```bash Request theme={"dark"}
> curl    --request POST \
>         --url https://app.infisical.com/api/v1/app-connections/supabase \
>         --header 'Content-Type: application/json' \
>         --data '{
>             "name": "my-supabase-connection",
>             "method": "access-token",
>             "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
>             "credentials": {
>                 "accessToken": "[Access Token]",
>                 "instanceUrl": "https://api.supabase.com"
>             }
>         }'
> ```
>
> ### Sample response
>
> ```bash Response theme={"dark"}
> {
>   "appConnection": {
>       "id": "e5d18aca-86f7-4026-a95e-efb8aeb0d8e6",
>       "name": "my-supabase-connection",
>       "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
>       "description": null,
>       "version": 1,
>       "orgId": "6f03caa1-a5de-43ce-b127-95a145d3464c",
>       "createdAt": "2025-04-23T19:46:34.831Z",
>       "updatedAt": "2025-04-23T19:46:34.831Z",
>       "isPlatformManagedCredentials": false,
>       "credentialsHash": "7c2d371dec195f82a6a0d5b41c970a229cfcaf88e894a5b6395e2dbd0280661f",
>       "app": "supabase",
>       "method": "access-token",
>       "credentials": {
>         "instanceUrl": "https://api.supabase.com"
>       }
>   }
> }
> ```


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