CommunityHire an ExpertSign Up
Databases and spreadsheetsSupabase
Databases and spreadsheets

Supabase integration

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.

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

    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

    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

    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

    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

  7. In the Softr Studio dashboard, select Integrations in the left menu, then select Connect new.

    The Integrations page of the dashboard, with the Connect new button

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

    The Select an integration window, with Supabase selected

  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

    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.

Use cases

Use caseWhat it does
Form-to-database intakeA form submission adds a new record, with all submitted details, to your Supabase table.
User provisioning on sign-upWhen a member signs up, creates their record in Supabase.
Status syncWhen a record moves to “In progress” in your app, updates the matching Supabase row.
Live data dashboardFind multiple records powers a list block that shows your latest Supabase data.
Bulk updatesUpdates many records at once, for example to mark a batch of orders as shipped.
Automated cleanupDeletes cancelled or expired records.

Use Supabase as a data source

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.

Connect a block to a table

To display your data in the app, connect a dynamic block, such as List, Grid, or Table, 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

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

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

ActionWhat it does
Find recordLooks up the first record that matches your conditions.
Find multiple recordsReturns every record that meets your criteria.
Add recordCreates a new record when a workflow runs.
Update recordChanges a single record.
Update multiple recordsUpdates many records at once.
Delete recordRemoves a single record.
Delete multiple recordsRemoves 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.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.