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

# Supabase

> What teammates can do in Supabase at each access level, and how to connect, limit, and disconnect Supabase.

Connect Supabase so your teammates can work in your Supabase account. You choose an access level for each account, and Squad refuses any teammate action outside that level.

## Access levels

Each Supabase account has an access level: **Read-only** and **Read + write**. Squad refuses any teammate action outside that level. You can also narrow or block single teammates under **One teammate at a time**.

| Level | The connect window describes this level as | Actions teammates can use |
| - | - | - |
| **Read-only** | "Read everything this account can see, such as projects, tables, functions, settings, and read-only SQL results. Cannot change anything." | 60 of 129 |
| **Read + write** (recommended) | "Run SQL and migrations, deploy Edge Functions, and manage database branches. Cannot change project settings, keys, secrets, or auth." | 77 of 129 |

The other 52 Supabase actions run at no level, so no teammate can run them.

**Read + write** is the recommended level. The connect window selects it for you, and you can choose another level.

The Supabase sign-in page asks you to approve full access to your account. This is expected. Squad does not narrow the sign-in. It checks every teammate action against the level you chose, and it refuses actions outside that level.

## What teammates can do at each level

Each level opens with a short summary in plain tasks, then lists every action it adds, grouped by what the action works on. You do not need to name actions. Ask in plain words, and the teammate searches for the matching action.

> [!TIP]
>
> **Find an action.** Open a level and use your browser's find (Ctrl+F, or Cmd+F on a Mac) with a word from the task or part of a slug. Or ask a teammate in plain words, for example "What can you do in my Supabase account?" The teammate can search the Supabase actions for you, and it can see which levels run each action.

Each action shows its name, a one-line description where the Supabase action catalog has one, and its slug. The slug is the ID that teammates use when they call the action.

> [accordion] Read-only
>
> Teammates can use 60 of the 129 Supabase actions at this level:
>
> * View and create settings
> * View branches
> * View keys
> * View functions
> * View integrations
> * View logs
> * View organizations
> * View projects
> * View runs
> * View snippets
> * View availability
> * View backups
>
> All 60 actions at this level:
>
> > [accordion] Availability (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Beta check vanity subdomain availability | Checks if a specific vanity subdomain is available for a Supabase project. | `SUPABASE_BETA_CHECK_VANITY_SUBDOMAIN_AVAILABILITY` |
>
> > [accordion] Backups (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | List backups | Lists all database backups for a Supabase project, providing details on existing backups but not creating new ones or performing restores. | `SUPABASE_LIST_BACKUPS` |
>
> > [accordion] Branches (3)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get branch | Retrieves detailed information about a specific database branch by its name and project reference. | `SUPABASE_GET_BRANCH` |
> > | List branches | | `SUPABASE_LIST_BRANCHES` |
> > | List database branches | Lists all database branches for a specified Supabase project, used for isolated development and testing of schema changes. | `SUPABASE_LIST_DATABASE_BRANCHES` |
>
> > [accordion] Databases (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get database metadata | Gets database metadata for the given project. | `SUPABASE_GET_DATABASE_METADATA` |
>
> > [accordion] Functions (3)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get function | Retrieves detailed information, metadata, configuration, and status for a specific Edge Function using its project reference ID and function slug. | `SUPABASE_GET_FUNCTION` |
> > | Get function body | Retrieves the source code (body) for a specified serverless Edge Function using its project reference and function slug. | `SUPABASE_GET_FUNCTION_BODY` |
> > | List functions | Lists metadata for all Edge Functions in a Supabase project (specified by 'ref'), excluding function code or logs. | `SUPABASE_LIST_FUNCTIONS` |
>
> > [accordion] History (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | List migration history | Retrieves the list of applied database migration versions for a Supabase project. | `SUPABASE_LIST_MIGRATION_HISTORY` |
>
> > [accordion] Integrations (2)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Alpha get third party integration | Retrieves the detailed configuration for a specific third-party authentication (TPA) provider, identified by tpa\_id, within an existing Supabase project specified by ref. | `SUPABASE_ALPHA_GET_THIRD_PARTY_INTEGRATION` |
> > | Alpha list third party auth integrations | Lists all configured third-party authentication provider integrations for an existing Supabase project (using its ref), suitable for read-only auditing or verifying current authentication settings. | `SUPABASE_ALPHA_LIST_THIRD_PARTY_AUTH_INTEGRATIONS` |
>
> > [accordion] Keys (3)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get legacy signing key | Retrieves the signing key information for the JWT secret imported as signing key for this project. | `SUPABASE_GET_LEGACY_SIGNING_KEY` |
> > | Get project legacy API keys | Checks whether JWT-based legacy API keys (anon, service\_role) are enabled for a Supabase project. | `SUPABASE_GET_PROJECT_LEGACY_API_KEYS` |
> > | Get project signing keys | List all signing keys for a Supabase project. | `SUPABASE_GET_PROJECT_SIGNING_KEYS` |
>
> > [accordion] Logs (2)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get action run logs | Retrieves the execution logs for a specific action run by its ID. | `SUPABASE_GET_ACTION_RUN_LOGS` |
> > | Get project logs | Retrieves analytics logs for a Supabase project. | `SUPABASE_GET_PROJECT_LOGS` |
>
> > [accordion] Members (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | List organization members | Retrieves all members of a Supabase organization, identified by its unique slug, including their user ID, username, email, role, and MFA status. | `SUPABASE_LIST_ORGANIZATION_MEMBERS` |
>
> > [accordion] Migrations (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get migration | Retrieves a specific database migration entry from the migration history using its version identifier. | `SUPABASE_GET_MIGRATION` |
>
> > [accordion] Organizations (2)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get organization | Fetches comprehensive details for a specific Supabase organization using its unique slug. | `SUPABASE_GET_ORGANIZATION` |
> > | List all organizations | Lists all organizations (ID and name only) associated with the Supabase account, excluding project details within these organizations. | `SUPABASE_LIST_ALL_ORGANIZATIONS` |
>
> > [accordion] Projects (7)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Beta get project network bans | Retrieves the list of banned IPv4 addresses for a Supabase project using its unique project reference string. | `SUPABASE_BETA_GET_PROJECT_NETWORK_BANS` |
> > | Beta get project network restrictions | Retrieves the network restriction settings (IP allowlists) for a Supabase project. | `SUPABASE_BETA_GET_PROJECT_NETWORK_RESTRICTIONS` |
> > | Get project | Retrieves detailed information about a specific Supabase project by its unique reference ID. | `SUPABASE_GET_PROJECT` |
> > | Get project readonly mode status | Retrieves the read-only mode status for a specified Supabase project to check its operational state. | `SUPABASE_GET_PROJECT_READONLY_MODE_STATUS` |
> > | Get project upgrade eligibility | Checks a Supabase project's eligibility for an upgrade, verifying compatibility and identifying potential issues. | `SUPABASE_GET_PROJECT_UPGRADE_ELIGIBILITY` |
> > | Get project upgrade status | Retrieves the latest status of a Supabase project's database upgrade for monitoring purposes. | `SUPABASE_GET_PROJECT_UPGRADE_STATUS` |
> > | List all projects | Retrieves a list of all Supabase projects, including their ID, name, region, and status, for the authenticated user. | `SUPABASE_LIST_ALL_PROJECTS` |
>
> > [accordion] Queries (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Run read only query | \[Beta] Run a SQL query as supabase\_read\_only\_user. | `SUPABASE_RUN_READ_ONLY_QUERY` |
>
> > [accordion] Regions (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get available regions | Get the list of available regions for creating a new Supabase project. | `SUPABASE_GET_AVAILABLE_REGIONS` |
>
> > [accordion] Runs (2)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Count action runs | Counts the number of action runs for a Supabase project using a HEAD request. | `SUPABASE_COUNT_ACTION_RUNS` |
> > | Get action run | Retrieves the status and details of a specific action run, including its steps, timestamps, and configuration. | `SUPABASE_GET_ACTION_RUN` |
>
> > [accordion] Schemas (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get table schemas | Retrieves column details, types, and constraints for multiple database tables to help debug schema issues and write accurate SQL queries. | `SUPABASE_GET_TABLE_SCHEMAS` |
>
> > [accordion] Services (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Gets project s service health status | Retrieves the current health status for a Supabase project, for specified services or all services if the 'services' list is omitted. | `SUPABASE_GETS_PROJECT_S_SERVICE_HEALTH_STATUS` |
>
> > [accordion] Settings (15)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Beta get project custom hostname config | Retrieves a Supabase project's custom hostname configuration, including its status, SSL certificate, and ownership verification, noting that availability may depend on the project's plan. | `SUPABASE_BETA_GET_PROJECT_CUSTOM_HOSTNAME_CONFIG` |
> > | Beta get project SSL enforcement config | Retrieves the SSL enforcement configuration for a specified Supabase project, indicating if SSL connections are mandated for its database. | `SUPABASE_BETA_GET_PROJECT_SSL_ENFORCEMENT_CONFIG` |
> > | Beta get vanity subdomain config | Fetches the current vanity subdomain configuration, including its status and custom domain name, for a Supabase project identified by its reference ID. | `SUPABASE_BETA_GET_VANITY_SUBDOMAIN_CONFIG` |
> > | Get auth config | | `SUPABASE_GET_AUTH_CONFIG` |
> > | Get database branch config | Retrieves the read-only configuration and status for a Supabase database branch, typically for monitoring or verifying its settings. | `SUPABASE_GET_DATABASE_BRANCH_CONFIG` |
> > | Get jit access config | \[Beta] Retrieves the project's just-in-time (JIT) access configuration, including user roles and their expiration settings. | `SUPABASE_GET_JIT_ACCESS_CONFIG` |
> > | Get project pgbouncer config | Retrieves the active PgBouncer configuration (PostgreSQL connection pooler) for a Supabase project, used for performance tuning, auditing, or getting the connection string. | `SUPABASE_GET_PROJECT_PGBOUNCER_CONFIG` |
> > | Get project postgres config | Retrieves the current read-only PostgreSQL database configuration for a specified Supabase project's ref, noting that some advanced or security-sensitive details might be omitted from the response. | `SUPABASE_GET_PROJECT_POSTGRES_CONFIG` |
> > | Get project postgrest config | Retrieves the PostgREST configuration for a specific Supabase project. | `SUPABASE_GET_PROJECT_POSTGREST_CONFIG` |
> > | Get project supavisor config | Retrieves the Supavisor (connection pooler) configuration for a specified Supabase project, identified by its reference ID. | `SUPABASE_GET_PROJECT_SUPAVISOR_CONFIG` |
> > | Get resumable upload base options | Handles OPTIONS request for TUS Resumable uploads to discover server capabilities. | `SUPABASE_GET_RESUMABLE_UPLOAD_BASE_OPTIONS` |
> > | Get resumable upload options | Handles OPTIONS request for TUS Resumable uploads to discover server capabilities. | `SUPABASE_GET_RESUMABLE_UPLOAD_OPTIONS` |
> > | Gets project s auth config | Retrieves the project's complete read-only authentication configuration, detailing all settings (e.g., providers, MFA, email/SMS, JWT, security policies) but excluding sensitive secrets. | `SUPABASE_GETS_PROJECT_S_AUTH_CONFIG` |
> > | Handle resumable upload sign options | Handles CORS preflight OPTIONS request for TUS resumable upload signing. | `SUPABASE_HANDLE_RESUMABLE_UPLOAD_SIGN_OPTIONS` |
> > | Handle resumable upload sign options with ID | Handles CORS preflight OPTIONS request for TUS resumable upload signing endpoints. | `SUPABASE_HANDLE_RESUMABLE_UPLOAD_SIGN_OPTIONS_WITH_ID` |
>
> > [accordion] Snippets (2)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get SQL snippet | Retrieves a specific SQL snippet by its unique identifier. | `SUPABASE_GET_SQL_SNIPPET` |
> > | List SQL snippets | Retrieves a list of SQL snippets for the logged-in user, optionally filtered by a specific Supabase project if project\_ref is provided. | `SUPABASE_LIST_SQL_SNIPPETS` |
>
> > [accordion] Storage buckets (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | List buckets | Retrieves a list of all storage buckets for a Supabase project, without returning bucket contents or access policies. | `SUPABASE_LIST_BUCKETS` |
>
> > [accordion] Tables (2)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | List tables | Lists all tables and views in specified database schemas, providing a quick overview of database structure to help identify available tables before fetching detailed schemas. | `SUPABASE_LIST_TABLES` |
> > | Select from table | Select rows from a Supabase/PostgREST table. | `SUPABASE_SELECT_FROM_TABLE` |
>
> > [accordion] Types (1)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Generate typescript types | Generates and retrieves TypeScript types from a Supabase project's database. | `SUPABASE_GENERATE_TYPESCRIPT_TYPES` |
>
> > [accordion] Other actions (5)
> >
> > | Action | What it does | Slug |
> > | - | - | - |
> > | Get health | Check the health status of the Supabase API. | `SUPABASE_GET_HEALTH` |
> > | Get performance advisors | Retrieves project performance advisors for a Supabase project. | `SUPABASE_GET_PERFORMANCE_ADVISORS` |
> > | Get security advisors | Retrieves security advisor findings and recommendations for a Supabase project. | `SUPABASE_GET_SECURITY_ADVISORS` |
> > | Get SSO provider | Retrieves the configuration details for a specific Single Sign-On (SSO) provider (e.g., SAML, Google, GitHub, Azure AD), identified by its UUID, within a Supabase project. | `SUPABASE_GET_SSO_PROVIDER` |
> > | List SSO providers | Lists all configured Single Sign-On (SSO) providers for a Supabase project, requiring the project reference ID (ref) of an existing project. | `SUPABASE_LIST_SSO_PROVIDERS` |

> [accordion] Read + write (recommended)
>
> Teammates can use 77 of the 129 Supabase actions at this level: everything in **Read-only**, plus:
>
> * Create, update, delete, and run functions
> * Create, update, and manage branches
> * Create and update migrations
> * Update settings
>
> The 17 actions that this level adds to **Read-only**:
>
> | Works on | Action | What it does | Slug |
> | - | - | - | - |
> | **Branches** | Create database branch | Creates a new, isolated database branch from an existing Supabase project (identified by ref), useful for setting up separate environments like development or testing, which can optionally be linked to a Git branch. | `SUPABASE_CREATE_DATABASE_BRANCH` |
> | | Merge branch | | `SUPABASE_MERGE_BRANCH` |
> | | Push branch | Pushes a database branch, applying migrations and changes to the specified branch. | `SUPABASE_PUSH_BRANCH` |
> | | Reset database branch | Resets an existing Supabase database branch, identified by branch\_id, to its initial clean state, irreversibly deleting all its current data and schema changes. | `SUPABASE_RESET_DATABASE_BRANCH` |
> | | Update branch | | `SUPABASE_UPDATE_BRANCH` |
> | **Functions** | Create function | Creates a new serverless Edge Function for a Supabase project (identified by ref), requiring valid JavaScript/TypeScript in body and a project-unique slug identifier. | `SUPABASE_CREATE_FUNCTION` |
> | | Delete edge function | | `SUPABASE_DELETE_EDGE_FUNCTION` |
> | | Delete function | Permanently deletes a specific Edge Function (by function\_slug) from a Supabase project (by ref). | `SUPABASE_DELETE_FUNCTION` |
> | | Deploy function | Deploys Edge Functions to a Supabase project using multipart upload. | `SUPABASE_DEPLOY_FUNCTION` |
> | | Invoke edge function | Invoke a deployed Supabase Edge Function over HTTPS. | `SUPABASE_INVOKE_EDGE_FUNCTION` |
> | | Update a function | Updates an existing Supabase Edge Function's properties (like name, slug, source code, JWT settings, import map) identified by project ref and function\_slug, supporting plain text code or ESZIP for the body. | `SUPABASE_UPDATE_A_FUNCTION` |
> | | Update functions | Bulk update Edge Functions in a Supabase project. | `SUPABASE_UPDATE_FUNCTIONS` |
> | **Migrations** | Apply a migration | Apply database migrations to a Supabase project. | `SUPABASE_APPLY_A_MIGRATION` |
> | | Patch migration | \[Beta] Patches an existing entry in the project's migration history, updating the name or rollback script. | `SUPABASE_PATCH_MIGRATION` |
> | | Upsert migration | Upsert a database migration without applying it. | `SUPABASE_UPSERT_MIGRATION` |
> | **Queries** | Beta run SQL query | Executes a given SQL query against the project's database. | `SUPABASE_BETA_RUN_SQL_QUERY` |
> | **Settings** | Update database branch config | Updates the configuration of a Supabase database branch, allowing modification of its name, associated Git branch, reset-on-push behavior, persistence, and status. | `SUPABASE_UPDATE_DATABASE_BRANCH_CONFIG` |

## Connect Supabase

Before you start:

* You need a Supabase account that you can sign in to.
* Your Squad subscription must be active. Squad does not connect apps while the subscription is not active.

**1. Open Apps**

Click **Settings** at the bottom of the sidebar, then **Apps**.

**2. Add an integration**

Under **Connected apps**, click the **Add integration** card.

**3. Find Supabase**

Find **Supabase** in the catalog and click it. You can type the name in **Search the catalog**.

**4. Choose an access level**

Under **What every teammate can do**, choose an access level. It applies to every teammate. The recommended level is marked **Recommended**.

**5. Choose who may use it**

If other people are in your squad, the window also shows **Share this account with everyone in this squad**. It is ticked for the owner and clear for everyone else. Leave it ticked to let your teammates use the account for anyone's requests. Clear it to keep the account for your own requests.

**6. Click Connect Supabase**

Click **Connect Supabase**. The Supabase sign-in page opens in a new tab.

**7. Sign in to Supabase**

Sign in to Supabase and approve the request. The Squad window waits and closes by itself when the account shows up.

Check that it works: Supabase shows under **Your connections** in its own card, with a row for the account and its access level.

## Change the access level

1. Under **Your connections**, find the Supabase account.
2. Click the access level on the account row, or open the account menu (⋯) and click **Manage scope**. Both open the same window.
3. Under **What every teammate can do**, choose the new level.
4. Click **Save access**.

The change does not need a new sign-in. Teammates get the new level from their next call.

## Set access for one teammate

Every teammate uses the account's level unless you set something else for it. You can narrow one teammate to a lower level, or block it.

Only you and your Administrators see **One teammate at a time**. The window says "Each teammate can do what’s set above unless you choose otherwise here. A change applies from their next use of it."

1. Under **Your connections**, open the account menu (⋯) on the Supabase account.
2. Click **Manage scope**.
3. Under **One teammate at a time**, find the teammate.
4. Choose **Default (level name)** to follow the account's level, choose any level of the app, or choose **No access**.
5. Click **Save access**.

A teammate never gets more than the account's level, even if you choose a higher level for it. Changes apply from the teammate's next call. A teammate with **No access** does not see the account.

## Use more than one Supabase account

Click **+ Account** on the Supabase card to connect another account. Teammates try the main account first unless they are asked to use a specific one. When other people are in your squad, a person's own accounts come before shared accounts.

* After you click **+ Account**, follow the connect steps above.
* Each account has its own access level.
* The first account you connect becomes the main account. Its row shows **Main account**.
* To change the main account, open the account menu (⋯) and click **Make it the main account**. Only you and the Administrators who can see every teammate can do this.
* To tell accounts apart, open the account menu (⋯) and click **Rename**.
* Each account is private to the person who connected it unless that person shares it. When other people are in your squad, connecting an account asks whether to share it with everyone. See [Who can use an account](https://squad.so/docs/integrations.md#who-can-use-an-account).

## Reconnect or disconnect

Reconnect when the connection has expired, or when you need to change what the account can reach on the Supabase side:

1. Open the account menu (⋯) and click **Reconnect**.
2. Click **Reauthorize on Supabase**.
3. Sign in to Supabase and approve the request.

Reconnect signs in to the same account again. It does not add a second connection. Only the person who connected the account can reconnect it. An account whose sign-in has expired shows **Needs reconnecting** on its row, with a **Reconnect** button for the person who connected it.

Open the account menu (⋯) on the Supabase account and click **Disconnect…**. A dialog asks you to confirm and says "Your teammates lose access to Supabase through this account." Click **Disconnect**. Teammates then lose access to that account at once.

If it was the main account, another connected Supabase account becomes the main account.

## Costs

Supabase actions do not use Squad credits. Connected apps never use credits. For what does use credits, see [What Squad costs](https://squad.so/docs/costs.md).

## Troubleshooting

A teammate reports that an action is not allowed on this account.

* Cause: the action is outside the account's access level, or outside the level you set for that teammate.
* Fix: choose a higher level in **Manage scope**. You or an Administrator can also change the teammate's row under **One teammate at a time**.

A teammate says it has no access to Supabase, or it does not see the account.

* Cause: the teammate is set to **No access** under **One teammate at a time**, or the account is not connected.
* Fix: you or an Administrator opens **Manage scope** and changes the teammate's row. If the account is missing, connect it again.

Connecting or saving fails with "Your subscription isn't active."

* Cause: your Squad subscription is not active.
* Fix: resubscribe. See [Manage your subscription](https://squad.so/docs/billing.md).

A teammate says the Supabase connection has expired.

* Cause: the sign-in for that account is no longer valid.
* Fix: click **Reconnect** on the account row, or open the account menu (⋯) and click **Reconnect**.

## Common questions

> [accordion] Can I limit what teammates can do in Supabase?
>
> Each Supabase account has an access level: **Read-only** and **Read + write**. Squad refuses any teammate action outside that level. You can also narrow or block single teammates under **One teammate at a time**.

> [accordion] Can I connect more than one Supabase account?
>
> Click **+ Account** on the Supabase card to connect another account. Teammates try the main account first unless they are asked to use a specific one. When other people are in your squad, a person's own accounts come before shared accounts.

> [accordion] How do I disconnect Supabase?
>
> Open the account menu (⋯) on the Supabase account and click **Disconnect…**. A dialog asks you to confirm and says "Your teammates lose access to Supabase through this account." Click **Disconnect**. Teammates then lose access to that account at once.

## Related pages

> [card] [Connect apps](https://squad.so/docs/integrations.md)

> [card] [Add an MCP server or an API key](https://squad.so/docs/custom-integrations.md)
>
> Use this when an action you need is not in this app.


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