Supabase is a Postgres database with file storage. With HostWebhook you can read, add, change and delete rows, call your database functions, work with the files in Storage, start a flow when a row is added or changed, and let an AI node use your tables and buckets, all from a flow. You connect a project once: HostWebhook creates its own key there.
HostWebhook's key skips row level security.
The key can read and change every row of the tables the node picks, whatever your row level security (RLS) policies say. Put in your flow only what you want it to touch, and give an AI node only the tables and buckets it needs (step 07).
Connect your Supabase project
In HostWebhook, click Settings in the left sidebar, then Credentials, and start a new credential. Choose Supabase.
- Marker 1: Give the credential a name, like My Supabase.
- Marker 2: Click Connect Supabase. Supabase opens: sign in and approve HostWebhook.
- Marker 3: Paste a key instead lets you use a key you made yourself (see below).
When you approve, Supabase asks to read your projects and to create a secret key. HostWebhook uses that permission once, to create its own key in the project you pick, and then gives it back: HostWebhook doesn't stay in your Supabase list of authorized apps.
Back in HostWebhook, pick the project. Its region shows on the right.
- Marker 1: The project, by name.
- Marker 2: Its region.
- Marker 3: Use this project creates the key and the credential.
You have 10 minutes to approve in Supabase and 10 more to pick the project. If time runs out, click Connect Supabase again.
The credential page shows what was created. The key is named hostwebhook_ and six letters or digits, and it shows in Supabase under Project Settings, API Keys, with the description HostWebhook and the date. If you connect the same project twice, you get two keys.
- Marker 1: The project, its reference and its region.
- Marker 2: How it was connected, and when.
- Marker 3: The start of the key and its name, the one to look for in Supabase. The whole key is never shown.
- Marker 4: Reconnect, for when Supabase stops accepting the key. It has to be the same project.
Paste a key instead
Click Paste a key instead and give the project URL and a secret key, the one that starts with sb_secret_. You find it in Supabase, under Project Settings, API Keys. HostWebhook doesn't take the publishable key (sb_publishable_…): it says That's the publishable key. Paste a secret key. The old service_role key works too, but Supabase retires it by the end of 2026, so create a secret key instead.
A free project pauses when nobody uses it.
Supabase pauses a Free project after a week without activity. The node then says Your Supabase project is paused. Restore it in Supabase.
Add a Supabase node
In Flows, add a Supabase node and open it. Pick your credential under Supabase project, then choose how the node works under Mode.
- Marker 1: The project the node uses: the credential you picked.
- Marker 2: Single operation: the node does one thing every time it runs, with values taken from the event that reaches it. For example: add a row when a form arrives, or read the orders that are waiting. AI toolkit: an AI node decides what to do (see step 07).
- Marker 3: The operation, here Get rows (steps 03 and 04).
- Marker 4: The table. Refresh loads the list again, and Type a name lets you write one.
Only the tables in your project's Data API show up. If you pick one that isn't there, the node says That table isn't in the Data API. Expose its schema in Supabase. Schema is empty for public: use it for another schema, which has to be exposed in the Data API too.
Read and change rows
Under Operation, open the list and pick one. They come in two groups, Rows and Storage. The label next to each name says whether it writes or deletes; the ones without a label only read.
- Marker 1: Delete rows is marked as one that deletes.
- Marker 2: Call a function writes: it can do anything your function does.
- Marker 3: The second group, Storage, is for files (step 04). Upload a file writes.
- Marker 4: Download a file only reads.
| Operation | What it does |
|---|---|
| Get rows | The rows of a table that match the filters, in the order you pick |
| Insert rows | Adds one or more rows, and gives back what it added |
| Update rows | Changes the columns you pick in every row that matches the filters |
| Upsert rows | Adds rows, or updates the ones that already have the same value in the unique column |
| Delete rows | Deletes every row that matches the filters, and gives back what it deleted |
| Call a function | Runs a Postgres function of your Data API, with the arguments you give |
Every field takes a template such as {{payload.row.id}}, so you can fill it in from the event that started the flow.
Get rows is the one to start with. Run it to see your data.
- Marker 1: Columns (optional): the ones to bring, like
id, estado, total, email. Empty means all. - Marker 2: Filters (optional): only rows that match all of them. Here,
estadoequalspendiente. - Marker 3: Order by and Direction (optional): pick a date column and Newest first to get the latest rows.
- Marker 4: Limit (optional): how many rows, up to 1,000.
- Marker 5: The output:
table,schema,rowsandcount. The node after it runs once per row.
Insert rows and Upsert rows take Rows: one JSON object per row, like {"email": "ana@example.com", "total": 120}. Upsert also asks for a Unique column, like email: a row that already has that value is updated instead of added.
Update rows and Delete rows need at least one filter, so they never touch the whole table by accident. Without one, the node refuses to run and says so.
- Marker 1: Update rows. The label says it writes.
- Marker 2: Filters: at least one, and only rows that match all of them change.
- Marker 3: With none, the node answers Add at least one filter. Only rows that match all of them change. and nothing changes.
Values is the JSON with the columns to change, like {"estado": "enviado"}.
Insert, Update, Upsert, Delete and Call a function change your database.
Run really adds, changes or deletes the rows. Try a filter with Get rows first to see which rows it matches.
Call a function takes the name of a Postgres function in your Data API and its Arguments, in JSON. It can do anything the function does, so use it only with functions you trust.
Work with files in Storage
The Storage operations work with the buckets of your project. Pick the Bucket and the Path: the folder and the file name, with no slash at the start.
- Marker 1: Upload a file. The label says it writes.
- Marker 2: Bucket: pick one of the list, or type a name.
- Marker 3: Path: where the file goes in the bucket, like
copies/order-6.txt. - Marker 4: File: a file from an earlier node, up to 16 MB.
- Marker 5: The output: the
bucket, thepathand thekeyof the file.
| Operation | What it does |
|---|---|
| Upload a file | Saves a file from an earlier step in a bucket, up to 16 MB. Overwrite is off: a file with the same path is not replaced unless you turn it on |
| Download a file | Brings a file from a bucket to your organization storage, where it stays for 24 hours, and gives it to the next node as a file |
| List files | The files and folders under a path of a bucket, 100 per page |
| Create a signed link | A link that gives a private file to whoever has it, until it expires. Link expires in is in seconds: 3600 is one hour |
| Delete files | Deletes one or more files, one path per line, up to 100. It cannot be undone |
A signed link goes to whoever has it.
Anyone with the link can read the file until it expires, and you can't take one link back. Use a short time.
Start a flow when a row is added or changed
Supabase can also start a flow. Add a Trigger node, choose Supabase as its service, and pick your credential.
- Marker 1: Table: the table to watch.
- Marker 2: Event Trigger: New rows or Updated rows. Pick one.
- Marker 3: Ignore changes made by this flow: on, so the rows your own flow writes don't start it again.
- Marker 4: Test push shows the latest rows. Nothing is sent and your flow doesn't run.
| Event | When it fires | Cursor |
|---|---|---|
| New rows | A row with a created_at above the last one seen | created_at |
| Updated rows | A row whose updated_at moved past the last one seen. A row touched within 2 seconds of being created doesn't count as changed | updated_at |
The Cursor is the column HostWebhook reads to know which rows are new. When you change from New rows to Updated rows, change the cursor too. Postgres doesn't move updated_at by itself: your app or a database trigger has to set it on every edit, or Updated rows sees nothing.
Use an id as the cursor
An id works as the cursor only if you tick Only my app sets this id: whoever can insert rows can pick an id, and a very large one would leave the trigger deaf. If you aren't sure, use created_at.
Filters (optional) narrow it down: only rows that match all of them. Rows per check is the most rows one check sends to your flow, 100 by default and up to 500.
When everything is set, click Activate. A trigger needs at least one connected node to activate. Activating adds nothing in Supabase: HostWebhook checks the table every 5 minutes on a paid plan and every 15 minutes on the Free plan, and starts the flow once for each new or changed row. The rows that were already there when you activate don't fire it.
Click Test push to see what the trigger will deliver. It reads the latest rows by the cursor, and a row younger than a minute doesn't show yet. The cursor doesn't move, so nothing is lost when you test.
Deleted rows don't fire this trigger.
The trigger sees rows that are added or changed, not the ones that go away. For deleted rows, use the Postgres trigger.
If Supabase stops accepting the key, the trigger pauses.
HostWebhook checks the key once a day. If you deleted it in Supabase, the trigger pauses and the credential asks you to reconnect it, from its page.
Use what arrives
Everything the trigger sends is in payload, so the nodes after it can use it from the start. Open a run to see it.
- Marker 1: The run: it worked, and how long it took.
- Marker 2: The trigger step, and the node after it. Here a Supabase node that marks the row as seen.
- Marker 3: What the trigger delivered:
event(row.createdorrow.updated),table,schema,row, with one entry for each column, and thecursorof that row.
Copy a path from the output to build the next node, like {{payload.row.id}} or {{payload.row.email}}. The most common flow is a Supabase node after the trigger: Update rows with the filter id equals {{payload.row.id}} to mark the row as handled.
A flow that writes to the table it watches doesn't start itself.
With Ignore changes made by this flow on, the rows a node of the same flow writes with Insert rows, Update rows or Upsert rows don't fire the trigger. The rows a function writes do. In Updated rows, a bulk edit by the flow can hide a change somebody else made at the same time. The switch needs a table with a primary key of one column. It's the same idea as in Stop a Postgres trigger from firing on its own flow.
Let an AI node use Supabase (optional)
In step 02, choose AI toolkit instead of Single operation. The node has 11 tools, such as select_supabase_rows and upload_supabase_file. Four of them start blocked, so the node is exposed as 7 Supabase tools. An AI node calls them by name when you connect it from the AI node's Tools.
- Marker 1: AI toolkit is the chosen mode: 11 tools per node.
- Marker 2: Tables the AI can use, Buckets the AI can use and Functions the AI can use: only these. Empty means none. Type a name and click Add, or let Refresh load the names from your project.
- Marker 3: Expose as MCP tool: lets Claude Desktop, Cursor or any MCP client use the node.
The AI node can only reach what you list. Empty means none: it can't read or change a table, a file or a function that isn't on the list, even with the tool unlocked.
The tools don't say which tables are on the list. Name them in the AI node's instructions, like Use the zz_pedidos table: if you don't, the model may guess another name, get refused and give up.
- Marker 1: Delete rows: destructive and blocked.
- Marker 2: Call a function: destructive and blocked. A function can do anything its author wrote.
- Marker 3: Create a signed link: destructive and blocked. Anyone with the link can read the file.
- Marker 4: Delete files: destructive and blocked. It cannot be undone.
Four tools start blocked.
delete_supabase_rows, call_supabase_function, create_supabase_signed_url and delete_supabase_file are blocked in a new node: a red switch means blocked. Turn one on only if the agent should do that. Update rows and Upsert rows are marked destructive too, but they start unblocked: block them with their switch if the agent should only read.
The AI gets up to 200 rows per read, it never replaces a file, and files go up to 16 MB. The rows and files of your tables can say anything, so a model can still be fooled by them, even though they are data, not instructions: block the tools it doesn't need.
If a flow uses AI (the AI node, Hermes or Claude), the rows and files it reads or changes go to that AI.
Disconnect Supabase (optional)
To stop HostWebhook from using your project, delete the credential: in Settings, Credentials, open the Supabase credential and click Delete. A dialog lists what still uses it.
- Marker 1: What still uses the credential: Supabase nodes and Supabase triggers, each with an Open link. They keep their configuration and stop running until you pick another credential.
- Marker 2: The key to delete in Supabase, by name: To revoke the key too, delete "hostwebhook_xxxxxx" in Supabase → API Keys.
- Marker 3: Disconnect and delete deletes the credential. Cancel leaves everything as it is.
Deleting the credential removes HostWebhook's copy of the key. The key stays alive in Supabase until you delete it yourself, and the dialog says where. A key you pasted is yours to delete in the same place, and the dialog doesn't name it.
Delete the key in Supabase to close the door.
Until you do, anything that has the key can still use it. In Supabase, open your project, then Project Settings, API Keys, and delete the key with the name the dialog gave.