Introduction

The Supabase App for Flows enables you to connect your workflows to Supabase, a powerful open-source PostgreSQL database platform with auto-generated REST APIs. This integration allows you to query, insert, update, upsert, and delete data directly from your Flows without writing complex code. With this App, you can build automated workflows that interact with your database in real-time, making it perfect for customer data management, analytics, reporting, and any data-driven automation.

What is Supabase?

Supabase is an open-source Firebase alternative that provides a PostgreSQL database with automatic REST API generation. Key features include:

  • Instant REST APIs for your database tables
  • Real-time subscriptions
  • Row Level Security (RLS) for fine-grained access control
  • Built-in authentication
  • Storage for files and media

 

Getting Started

Prerequisites

Before using the Supabase App, you will need:

  • A Supabase account (free tier available at supabase.com)
  • A Supabase project with at least one table
  • Your Supabase Project URL and API Key

 

Finding Your Credentials

1. Log in to your Supabase Dashboard

2. Select your project

3. Click the Settings icon (gear) in the left sidebar

4. Navigate to API under Project Settings

5. Copy your Project URL and API Key


 

API Key Types

Key TypeUse CaseSecurity
Publishable Key (anon)Frontend apps, respects Row Level SecuritySafe to expose, limited by RLS policies
Secret Key (service_role)Backend/server operations, full accessBypasses RLS - keep secure!


 

Recommendation: For Flows automation, use the Secret Key (service_role) to ensure full access to your data. Keep this key secure and never expose it in client-side code.


 

Available Stages

StageMethodDescription
Query RowsGETRetrieve one or more rows with filtering, sorting, and column selection
Insert RowsPOSTCreate one or more new rows
Update RowsPATCHModify existing rows matching filter conditions
Upsert RowsPOSTInsert new row, or update if it already exists
Delete RowsDELETERemove rows matching filter conditions


 

Filter Operators Reference

All stages that use filters support these operators:


 

OperatorDescriptionExample
eqEqualsstatus=eq.active
neqNot equalsstatus=neq.deleted
gtGreater thanamount=gt.100
gteGreater than or equalage=gte.18
ltLess thanprice=lt.50
lteLess than or equalquantity=lte.10
likePattern match (case-sensitive)name=like.*john*
ilikePattern match (case-insensitive)email=ilike.*@gmail.com
inValue in liststatus=in.(active,pending)
isIs null/not nulldeleted_at=is.null


 

Combining Filters (AND):

Use & between conditions:

status=eq.active&category=eq.premium&age=gte.18

 

Was this article helpful?