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

# Connect Supabase with Personal Access Token – StackOne Hub

> Link a Supabase account in the StackOne Hub using Personal Access Token. End-user guide to authorize the integration and start using Supabase actions.

> [!WARNING]
>
> Personal access tokens carry the permissions you grant them across the selected organizations and projects. Keep them secure and never share them.

## Generate a personal access token

Personal access tokens (PATs) authenticate requests to the Supabase Management API. Each token is scoped to the organizations or projects and permissions you choose when you create it.

**1. Generate the token**

Sign in to your [Supabase account](https://supabase.com/dashboard).

<ul>
  <li>Click your profile icon in the top right.</li>
  <li>From the dropdown, click **Account**.</li>
  <li>In the **Account Settings** sidebar, click **Access Tokens**.</li>
  <li>Click **Generate new token**.</li>
  <li>**Name**: `StackOne Integration`</li>
  <li>**Expires in**: select a duration</li>
  <li>Generate a new token and update the connection before this one expires.</li>
</ul>

![The Generate token panel with the Name field and the Expires in options highlighted](https://mintcdn.com/stackone-60/4lq9E-Lck9jA2KYK/connectors/supabase/images/custom-pat-config-token-details.png?fit=max\&auto=format\&n=4lq9E-Lck9jA2KYK\&q=85\&s=38a83cb0479ffd2b96b95e74db52acdf)

**2. Choose resource access**

Under **Resource access**, select **Organization**, not **Project**, so StackOne can list the organization and its members.

<ul>
  <li>From the **Organizations** dropdown, select the organization you want to connect.</li>
</ul>

![The Resource access section with the Organization option and a selected organization highlighted](https://mintcdn.com/stackone-60/4lq9E-Lck9jA2KYK/connectors/supabase/images/custom-pat-config-resource-access.png?fit=max\&auto=format\&n=4lq9E-Lck9jA2KYK\&q=85\&s=fd62b2c240bbeb912bffdcfa9816022a)

**3. Set permissions**

Choose what the token is allowed to do.

<ul>
  <li>Under **Permissions**, open the preset dropdown.</li>
  <li>Select **Full access** so StackOne can run read and write actions, or **Read-only** for read actions only.</li>
  <li>If you customize permissions, keep **Read** access on **Organizations**, **Organization Members**, **Organization Settings**, **Projects (account-wide)** and **SQL Snippets (account-wide)**.</li>
  <li>Click **Review access**.</li>
</ul>

![The Permissions preset dropdown with the Full access option highlighted](https://mintcdn.com/stackone-60/4lq9E-Lck9jA2KYK/connectors/supabase/images/custom-pat-config-permissions.png?fit=max\&auto=format\&n=4lq9E-Lck9jA2KYK\&q=85\&s=22013655daa8822dcaa33d09dbdd5f57)

**4. Review and create the token**

Check the **Token summary** and **Capabilities**.

<ul>
  <li>Access can't be changed after creation, so confirm the organization and permissions first.</li>
  <li>Click **Create token**.</li>
</ul>

![The review step of the Generate token panel with the Create token button highlighted](https://mintcdn.com/stackone-60/4lq9E-Lck9jA2KYK/connectors/supabase/images/custom-pat-config-review-access.png?fit=max\&auto=format\&n=4lq9E-Lck9jA2KYK\&q=85\&s=500e7ad0e249f576bea33e669528456c)

**5. Copy the token**

Copy the **Personal Access Token** across.

<ul>
  <li>Click **Copy** to copy the new token.</li>
  <li>The token starts with `sbp_` and is shown only once.</li>
  <li>The **Native Webhook URL** field in StackOne Hub is read-only and filled in after the connection is created. You only need it when setting up Supabase webhooks.</li>
</ul>

![The Token created panel with the token value hidden and the Copy button highlighted](https://mintcdn.com/stackone-60/4lq9E-Lck9jA2KYK/connectors/supabase/images/custom-pat-config-copy-token.png?fit=max\&auto=format\&n=4lq9E-Lck9jA2KYK\&q=85\&s=b398c9d7d209b137d3b8bfc2ec466fbe)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/supabase/guides/webhook-setup.md)
>
> Configure receiving Events for Supabase into StackOne.


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