Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Supabase actions reference ​

The Supabase integration gives you actions to retrieve and change rows, manage files in Storage, call Postgres functions and Edge Functions, and sign users in with Supabase Auth. Each action links to a page with a full walkthrough.

WHERE YOU CAN USE SUPABASE ACTIONS

Most Supabase actions are available in both places:

  • In Data & API workflows (API Endpoints).
  • In Interface workflows (for example when a user clicks a button).

This gives you a choice:

  • Use an Interface workflow when you want a quick action that happens directly from the app (for example upload a profile picture).
  • Use an API Endpoint when you want the safest setup for access control and data rules (recommended for anything sensitive).

Supabase Auth actions like Sign in with Email, Sign up with Email, and Sign in with Provider are only available in Interface workflows.

LOOKING FOR HOW TO USE SUPABASE?

  • If you chose Supabase as backend (browser connects directly to Supabase), you typically call these actions from Interface workflows and secure data with RLS. Learn how that mode works →
  • If you opened this from a backend workflow warning: those workflows always run on your WeWeb server, not on Supabase. Learn more →
  • If you chose Supabase as data source only, start with Supabase as a data source →

This integration provides actions you can use in workflows.

ActionDescription
Database | SelectRetrieve rows from a Supabase table, with related data, filters, sorting, pagination, and optional count.
Database | InsertInsert one or more rows into a Supabase table.
Database | UpdateUpdate one or more rows in a Supabase table (requires filters).
Database | UpsertInsert rows, or update them if they already exist (based on conflict columns).
Database | DeleteDelete one or more rows from a Supabase table (requires filters).
Storage | List FilesList files inside a Supabase Storage bucket.
Storage | Upload FileUpload a file to Supabase Storage.
Storage | Download FileDownload a file from Supabase Storage.
Storage | Update FileReplace an existing file in Supabase Storage.
Storage | Move FileMove/rename a file in Supabase Storage.
Storage | Copy FileCopy a file in Supabase Storage.
Storage | Delete FilesDelete one or more files from Supabase Storage.
Storage | Create Signed URLCreate a time‑limited URL for a private file.
Storage | Get Public URLGet a public URL for a file in a public bucket (optional image transform).
Call Postgres FunctionCall a Postgres function (RPC) in your Supabase project.
Invoke Edge FunctionCall a Supabase Edge Function.
Sign up with EmailCreate a user with email and password (Supabase Auth).
Sign in with EmailSign in a user with email and password (Supabase Auth).
Sign in with ProviderSign in using a social provider configured in Supabase Auth.
Sign in with OTPSend a one-time code or magic link to an email address.
Verify OTPCheck the one-time code the user received and sign them in.
Reset password for emailSend a password reset email.
Update userChange the email, password or metadata of the signed‑in user.
Fetch UserRetrieve the currently signed‑in user from Supabase Auth.
Refresh TokenGet a new session for the signed‑in user.
Sign OutSign out the currently signed‑in user from Supabase Auth.

Action details ​

Select ​

Retrieve rows from a table, with optional related data, filters, sorting, pagination, and count.

Inputs

FieldDescription
TableThe table to retrieve rows from.
ColumnsWhich columns to return. Use the Columns flyout to pick fields, include related tables (References / Referenced by), set aliases, and choose a join type (Left or Inner).
FiltersConditions to limit which rows you retrieve. Supports grouped And / Or logic and columns from related tables.
SortOne or more sort rules (column + direction). Can include columns from related tables.
LimitMaximum number of rows to return.
OffsetNumber of rows to skip (useful for pagination).
Single rowReturns one object instead of an array (error if no row found).
Maybe singleReturns one object or null (no error if no row found).
CountRow count mode: Exact count, Planned count, Estimated count, or No count.

Learn more about configuring Select →

Insert ​

Insert one or more rows into a table.

Inputs

FieldDescription
TableThe table to insert into.
DataArray of row objects to insert. Keys are column names.
Return rowsWhat to return after insert: All columns (default), Specific columns or None.
Return columnsShown when Return rows is Specific columns. The columns to return after insert.

Update ​

Update one or more rows in a table.

Inputs

FieldDescription
TableThe table to update.
FiltersAt least one filter is required (safety measure).
DataThe columns to update and their new values.
Return rowsWhat to return after update: All columns (default), Specific columns or None.
Return columnsShown when Return rows is Specific columns. The columns to return after update.

Upsert ​

Insert rows, or update them if they already exist.

Inputs

FieldDescription
TableThe table to upsert into.
DataArray of row objects to upsert.
On conflict columnsColumns to check for conflicts. Defaults to the primary key if left empty.
Ignore duplicatesIf enabled, duplicate rows are ignored instead of updated.
Return rowsWhat to return after upsert: All columns (default), Specific columns or None.
Return columnsShown when Return rows is Specific columns. The columns to return after upsert.

Delete ​

Delete one or more rows from a table.

Inputs

FieldDescription
TableThe table to delete from.
FiltersAt least one filter is required (safety measure).
Return rowsWhat to return from deleted rows: All columns (default), Specific columns or None.
Return columnsShown when Return rows is Specific columns. The columns to return from deleted rows.

List Files ​

List files in a bucket (optionally inside a folder).

Inputs

FieldDescription
BucketThe bucket to list files from.
PathOptional folder path inside the bucket.
LimitMaximum number of files to return.
OffsetNumber of files to skip.
SearchOnly return files that match this search string.
Sort bySort files by a Column (Name, Created at, Updated at or Size) and an Order (Ascending or Descending).

Upload File ​

Upload a file to a bucket.

Inputs

FieldDescription
BucketThe bucket to upload to.
PathFull path including filename (for example users/123/avatar.png).
FileThe file you want to upload (for example from a file input).
UpsertOverwrite the file if it already exists.
Content typeFile type (MIME type). Usually auto‑detected.
Cache controlCache duration in seconds.

Download File ​

Download a file from a bucket.

Inputs

FieldDescription
BucketThe bucket to download from.
PathFull path to the file.

Update File ​

Replace an existing file in a bucket.

Inputs

FieldDescription
BucketThe bucket containing the file.
PathFull path to the existing file to update.
FileThe new file content.
Content typeFile type (MIME type). Usually auto‑detected.
Cache controlCache duration in seconds.

Move File ​

Move (rename) a file in a bucket.

Inputs

FieldDescription
BucketThe bucket containing the file.
From pathCurrent path of the file.
To pathNew path for the file.

Copy File ​

Copy a file in a bucket.

Inputs

FieldDescription
BucketThe bucket containing the file.
From pathPath of the file to copy.
To pathDestination path for the copy.

Delete Files ​

Delete one or more files from a bucket.

Inputs

FieldDescription
BucketThe bucket containing the files.
File pathsAn array of file paths to delete.

Create Signed URL ​

Create a time‑limited URL for a file (useful for private buckets).

Inputs

FieldDescription
BucketThe bucket that contains the file.
PathFile path inside the bucket.
Expires in (seconds)How long the link should work for.
TransformOptional image resizing/quality options (requires Supabase Pro plan).

Get Public URL ​

Get a public URL for a file in a public bucket.

Inputs

FieldDescription
BucketThe bucket (must be public).
PathFile path inside the bucket.
DownloadIf enabled, the URL triggers a download.
TransformOptional image resizing/quality options (requires Supabase Pro plan).

Call Postgres Function ​

Call a Postgres function (RPC) from Supabase.

Inputs

FieldDescription
Function nameThe Postgres function you want to call.
ParametersKey/value parameters for the function.
Single resultReturn a single object instead of an array.

Invoke Edge Function ​

Call a Supabase Edge Function.

Inputs

FieldDescription
FunctionThe Edge Function to invoke.
MethodHTTP method to use (for example POST).
BodyData you want to send (for POST, PUT, PATCH).
Custom headersOptional headers to send with the request.

Sign in with Email ​

Sign in a user with email and password (Supabase Auth).

Inputs

FieldDescription
EmailThe user’s email.
PasswordThe user’s password.

Sign up with Email ​

Create a user with email and password (Supabase Auth).

Inputs

FieldDescription
EmailThe user’s email.
PasswordThe user’s password.
User metadataOptional extra profile data to store on the user.
Email redirect URLOptional redirect after the user confirms their email.

Sign in with Provider ​

Sign in with a social provider configured in Supabase Auth.

Inputs

FieldDescription
ProviderThe OAuth provider (for example Google or GitHub).
Redirect URLOptional, in the Advanced section. Where to send the user after sign in.
ScopesOptional extra scopes (space‑separated).
Query parametersOptional extra settings to pass to the provider.

Sign in with OTP ​

Send a one-time code or magic link to an email address. This action only sends the email: follow it with Verify OTP once the user has entered the code.

Inputs

FieldDescription
EmailThe email address to send the code to.
Create user if not existsOptional, in the Advanced section. Creates a new user if no account uses this email. On by default.
Email redirect URLOptional, in the Advanced section. Page to send the user to after they click the link in the email.

Verify OTP ​

Check the one-time code the user received and sign them in.

Inputs

FieldDescription
EmailThe user’s email.
TokenThe code the user received.
TypeHow the code was sent. It must match the action that sent it. Valid: email, email_change, invite, magiclink, phone_change, recovery, signup, sms.

Reset password for email ​

Send a password reset email. This action only sends the email: the new password is set later with Update user, on the page the reset link opens.

Inputs

FieldDescription
EmailThe email address to send the reset link to.
Redirect URLOptional, in the Advanced section. Page to send the user to after they click the reset link.

Update user ​

Change the email, password or metadata of the signed‑in user. When you change the email, Supabase sends a confirmation link and the change only applies once the user clicks it.

Inputs

FieldDescription
New emailOptional new email address.
New passwordOptional new password.
Current passwordOptional. The user’s current password, needed when your Supabase project asks for it before a password change.
User metadataOptional profile data to update.

Fetch User ​

Retrieve the currently signed‑in user.

Inputs

This action has no inputs.

Refresh Token ​

Get a new session for the signed‑in user, so they stay signed in.

Inputs

This action has no inputs.

Sign Out ​

Sign out the currently signed‑in user.

Inputs

This action has no inputs.

CONTINUE LEARNING

Something doesn't work as expected? Check the most common Supabase issues and questions.

Supabase errors and FAQs →