---
title: "Supabase integration"
description: "Connect your Supabase Postgres database to Softr, then build apps on your tables, and find, add, update and delete records from your workflows and agents."
canonical: "https://docs.softr.io/integrations/supabase"
updated: "2026-12-04"
---

# Supabase integration

Supabase is a Postgres database with an API on top. In Softr, you can build apps on your Supabase tables and use Supabase in workflows and agents.

## Connect Supabase

You connect Supabase with the PostgreSQL (PSQL) credentials of your Supabase project.

1. Log in to Supabase, go to the dashboard, and select the project you want to connect to Softr.

   ![Select the project you want to connect to Softr](/data-sources/supabase/image1.webp)

   _Select the project you want to connect to Softr_

2. Select **Connect** at the top of the project settings page.

   ![Select Project settings in the bottom left menu](/data-sources/supabase/image2.webp)

   _Select Project settings in the bottom left menu_

3. Change the **Type** to **PSQL**.

4. Open the **View parameters** dropdown under the **Session Pooler** section.

   ![Select the Database tab under Configuration](/data-sources/supabase/image3.webp)

   _Select the Database tab under Configuration_

5. In the **Configuration Parameters** section, copy these credentials and store them securely: **Host**, **Database**, **Port** (default `5432`), **User**, and **Password**. The password is usually the project password.

   ![Find the Connection parameters section and copy down the credentials](/data-sources/supabase/image4.webp)

   _Find the Connection parameters section and copy down the credentials_

6. Set the pool size to 45 or greater, so that your database supports several Softr connections at once. In Supabase, open **Project Settings → Database**, type the pool size, and select **Save**.

   ![Pool size field in the Supabase Database settings](/data-sources/supabase/image5.webp)

7. In the [Softr Studio dashboard](https://studio.softr.io/dashboard/integrations), select **Integrations** in the left menu, then select **Connect new**.

   ![The Integrations page of the dashboard, with the Connect new button](/data-sources/supabase/integrations.webp)

8. In the **Select an integration** window, select **Supabase**.

   ![The Select an integration window, with Supabase selected](/data-sources/supabase/select-integration-supabase.webp)

9. Paste your credentials into the matching fields: **Host**, **Port** (`5432` by default), **Database**, **User**, and **Password**.

10. Optional: enter a **Name** for your connection.

11. Select **Connect**.

    ![The Connect to Supabase database window, with the Host, Database, User and Password fields and the Connect button](/data-sources/supabase/connect-supabase-credentials.webp)

    _The Connect to Supabase database window, with the fields to fill in_

12. Optional: if you restrict IP addresses in Supabase, add Softr's IP addresses to your allowed list: `3.120.79.212`, `3.123.159.186`, and `52.58.246.121`.

To use Supabase in a workflow:

1. Open your app and go to **Workflows**.
2. Create a workflow and add an action from the **SQL** group to add, find, update or delete a record.
3. Under **Account**, connect your Supabase database with the same PSQL credentials.
4. Choose the **database**, **schema** and **table**.
5. Map fields from your forms, records or earlier workflow steps to the action inputs. For advanced cases, write a custom **SQL Query**.
6. Save and publish the workflow.

> **Tip**
>
> You can also keep your data in Softr Databases, built into Softr and ready for your apps and workflows. See [Softr Databases](/databases/overview).

## Use cases

| Use case                         | What it does                                                                             |
| -------------------------------- | ---------------------------------------------------------------------------------------- |
| **Form-to-database intake**      | A form submission adds a new record, with all submitted details, to your Supabase table. |
| **User provisioning on sign-up** | When a member signs up, creates their record in Supabase.                                |
| **Status sync**                  | When a record moves to "In progress" in your app, updates the matching Supabase row.     |
| **Live data dashboard**          | **Find multiple records** powers a list block that shows your latest Supabase data.      |
| **Bulk updates**                 | Updates many records at once, for example to mark a batch of orders as shipped.          |
| **Automated cleanup**            | Deletes cancelled or expired records.                                                    |

## Use Supabase as a data source

> **Note**
>
> In apps built with Softr AI, connect your account, then ask Softr AI to build on the source. It reads the tables and builds the pages for you. See [Connect your data](/apps/connect-your-data). The block settings below apply to Classic apps.

Supabase is available on Pro and higher plans.

### Connect your Supabase data to a Classic app

Once your Supabase account is connected, you can use it in any app.

1. **Connect a block to a table**

   To display your data in the app, connect a [dynamic block](/classic/overview#visualize-data-with-building-blocks), such as [List](/classic/list-and-grid-blocks#list-block), [Grid](/classic/list-and-grid-blocks#grid-block), or [Table](/classic/table-block), to your Supabase table.

   1. Open the block's **Source** tab and select your Supabase integration.
   2. Select the **database** and **schema** you want to connect.
   3. Pick the **table** you want to use, or add a new **query**.
   4. Optional: select the **primary field**.

   ![The Source tab of a List block with the Supabase account, database, schema and table selected](/data-sources/supabase/block-source-supabase.webp)
2. **Map Supabase fields to item fields**

   Choose which Supabase properties the block shows, and map each one to a Softr field. For example, show an **email** column as an **Email** field. Show a column that holds image URLs, such as **Avatar URL**, as an **Image** field.

   ![The Content tab of a List block with the Avatar URL column shown as an Image field](/data-sources/supabase/map-image-field.webp)

## Use Supabase in workflows and agents

Workflows and agents can find, add, update, and delete records in Supabase with the actions of the **SQL** group, or run a custom SQL query.

### Actions

| Action                      | What it does                                            |
| --------------------------- | ------------------------------------------------------- |
| **Find record**             | Looks up the first record that matches your conditions. |
| **Find multiple records**   | Returns every record that meets your criteria.          |
| **Add record**              | Creates a new record when a workflow runs.              |
| **Update record**           | Changes a single record.                                |
| **Update multiple records** | Updates many records at once.                           |
| **Delete record**           | Removes a single record.                                |
| **Delete multiple records** | Removes a batch of records at once.                     |

### Good to know

- Databases, schemas, tables and fields load live from your connected project.
- Use a custom **SQL Query** for anything the standard actions do not cover.

## FAQ

**Which plan do I need for Supabase?**

Supabase is available on Pro and higher plans.

**Which credentials does Softr need?**

Softr needs the PSQL credentials of your Supabase project: **Host**, **Database**, **Port** (default `5432`), **User** and **Password**. Find them under **Session Pooler** in the project **Connect** settings.

**What pool size should I set in Supabase?**

Set the pool size to 45 or greater, so your database supports several Softr connections at once.

**Do I need to allow Softr's IP addresses?**

Only if you restrict IP addresses in Supabase. Then add `3.120.79.212`, `3.123.159.186` and `52.58.246.121` to your allowed list.
