Supabase
Your Supabase project, in two nodes on one connected credential. The action runs 11 operations that read, add, change and delete rows, call database functions and work with the files in Storage, and can also be an AI toolkit. The trigger fires a flow when a row is added to a table, or a row in it changes — by checking the table through the Data API, without touching your database.
Setup
Connect Supabase under Settings → Credentials, or straight from the node: name the credential, press Connect Supabase, approve the HostWebhook app in Supabase and pick a project. HostWebhook then creates its own secret key in that project (named hostwebhook_ and six letters or numbers) and uses only that key. One credential is one project: to use another project, make another credential.
The approval is a one-time permission, only to list your projects and create the key. HostWebhook holds its tokens, encrypted, only while you pick a project — at most 10 minutes — and never stores them in its database. When the key is created, it withdraws the permission, so it keeps no access to your Supabase organization. If Supabase doesn't let it withdraw it, the card says so and where to remove it yourself: Organization settings → OAuth Apps. If you close the project list without picking one, the permission is withdrawn too.
Paste a key instead. Under the button, give the project URL (https://<ref>.supabase.co) and a secret key (it starts with sb_secret_). The publishable key is refused: it can do nothing here. An older service_role key works, with a note — Supabase retires it by the end of 2026.
What it reaches. Only the Data API (rows, functions) and Storage (files) of that project, at its own address. It doesn't touch users and sign-in (Auth), your SQL or your project settings. The schemas the Data API exposes are the ones you can use; a table in another schema works if you type its schema. A self-hosted Supabase isn't covered: connect its database with the Postgres node.
Reconnecting. If you delete the key in Supabase, the credential asks to be reconnected and its triggers pause. Reconnecting only works with the same project. Deleting the credential removes HostWebhook's copy of the key; the key itself stays in Supabase until you delete it (Project Settings → API Keys): the dialog tells you its name.
Operations
Rows
| Value | In the dropdown | What it does | Supabase calls |
|---|---|---|---|
| selectRows | Get rows | The rows of a table that match the filters, in the order you pick. 50 by default, up to 1,000. | 1 |
| insertRows | Insert rows | Adds one or more rows (up to 1,000 at a time). You get back what was inserted. | 1 per 1,000 rows |
| updateRows | Update rows | Changes the rows that match ALL the filters. At least one filter is required. | 1 |
| upsertRows | Upsert rows | Adds rows, or updates the ones that already have the same value in the unique column you pick. | 1 per 1,000 rows |
| deleteRows | Delete rows | Deletes the rows that match ALL the filters. At least one filter is required. You get back what was deleted. | 1 |
| callFunction | Call a function | Runs a Postgres function that the Data API exposes, with the JSON arguments you give. It can do anything the function does. | 1 |
Storage
| Value | In the dropdown | What it does | Supabase calls |
|---|---|---|---|
| uploadFile | Upload a file | Saves a file from an earlier step (up to 16 MB) in a bucket, under a path. Overwrite is off unless you turn it on. | 1 |
| downloadFile | Download a file | Brings a file from a bucket to your HostWebhook storage, where it is deleted after 24 hours. Up to 16 MB. | 1 |
| listFiles | List files | What is under a folder of a bucket: names, sizes and dates. 100 per page. | 1 per page |
| createSignedUrl | Create a signed link | A link that lets anyone who has it download one private file, until it expires: from 60 seconds to 7 days, 1 hour by default. | 1 |
| deleteFile | Delete files | Deletes one or more files by path, up to 100. | 1 |
The last column is how many requests one run sends to your project. See Limits.
Filling in the fields
- Table, Function and Bucket are picked from your project. To type a name instead, use the second control under the list. Schema is
publicif you leave it empty. These four can't use templates ({{payload.table}}is refused when you save and when the node runs): the key skips row level security, so the data of an event can't choose which table, function or bucket it acts on. Rows, values, the value of each filter, the path of a file and a function's arguments take templates. The column and the operator of a filter, and the list of filters itself, don't: otherwise an event could sendid > 0to Delete rows. - Filters are a list: a column, an operator and a value. A row has to match all of them. Operators: equals, is not, is greater than, is at least, is less than, is at most, matches pattern (case sensitive or not), is empty / true / false, and is one of (separate the values with commas). Only the value takes templates, like
{{payload.id}}; the column and the operator are chosen once in the node. There is no box to write a query by hand. - Update rows and Delete rows need at least one filter, so they never change the whole table by mistake. A filter that matches everything still matches everything.
- Columns (Get rows) is empty for all, or a list like
id, status, total. Order by takes a column and Direction; pick a date column for newest first. Limit is up to 1,000. - Rows (Insert, Upsert) is one JSON object per row, or a list of them, and takes templates:
{"email": "{{payload.email}}"}. Values (Update) has only the columns you change. - Unique column (Upsert) is the column whose value decides which row is replaced instead of added. The table needs a unique constraint on it.
- File (Upload) is a file from an earlier step, like
{{payload.file}}, up to 16 MB. Path is the folder and file name without a leading slash:2026/11/{{payload.id}}.pdf. Overwrite on replaces a file with the same path. - Link expires in is in seconds:
3600is one hour, up to 7 days.
Row operations come back as { table, schema, rows: [...], count }: the next node runs once per row. A very big number (a bigint or numeric that doesn't fit exactly in JSON) comes as text, so it never changes in transit — {{row.id}} is still the exact id. Ordinary decimals stay numbers. List files comes back as { bucket, files: [...], count }, and Call a function as { function, result } (null if the function returns nothing).
When Supabase says no
- The key was rejected. “Supabase rejected the key. It may have been deleted. Reconnect.” The credential asks to be reconnected.
- The table isn't in the Data API. “That table isn't in the Data API. Expose its schema in Supabase.”
- A row already exists. “A row with that email already exists.” It names the column, never the value. On Insert it adds “Use upsert.”
- No filter. “Add at least one filter. Only rows that match all of them change.”
- The project is paused. “Your Supabase project is paused. Restore it in Supabase.” A free project pauses after a week without activity.
- The file is too big. “Up to 16 MB per file.”
- Supabase is busy. HostWebhook waits and tries again, up to three times; if it still can't, the step says “Supabase is busy. Try again in a moment.”
A failed step shows only HostWebhook's own line and Supabase's error code. The values Supabase adds to an error — the row that clashed, a hint — are never saved in your run history or shown to an AI.
AI toolkit mode
Once the credential is picked, the node asks for a Mode. AI toolkit turns it into 11 tools that an AI Node — or an MCP client, through one of your MCP servers — calls by name: an assistant that looks up an order, adds a row for it, or files the invoice PDF in a bucket.
| Tool | Arguments |
|---|---|
| select_supabase_rows | table · columns? · filters? · order_by? · order_direction? · limit? |
| insert_supabase_rows | table · rows |
| update_supabase_rows | table · filters · values |
| upsert_supabase_rows | table · rows · on_conflict |
| delete_supabase_rows | table · filters |
| call_supabase_function | function_name · args? |
| upload_supabase_file | bucket · path · file |
| download_supabase_file | bucket · path |
| list_supabase_files | bucket · prefix? · limit? |
| create_supabase_signed_url | bucket · path · expires_in? |
| delete_supabase_file | bucket · paths |
What you control
- Tables the AI can use, Buckets the AI can use and Functions the AI can use. The AI touches only these. Empty means none: until you add a table, a bucket or a function, its tools refuse, with “The AI can't use "orders". Add it to "Tables the AI can use".” A table in another schema is written
schema.table; without a schema it is the node's schema. A function is listed by its name and is looked up in the node's schema. Because the key skips row level security, these lists are the only door. - Blocked tools.
delete_supabase_rows,delete_supabase_file,call_supabase_function(a function can do anything, to any table) andcreate_supabase_signed_url(the link gives a private file to whoever has it, and can't be withdrawn one by one) start blocked: turn one on only if the agent should. Unlockingcall_supabase_functionstill leaves only the functions you listed. In MCP they go through the destructive tool. Block any other under Block these tool calls. - Characters per call sent to the model. 20,000 by default, anything from 1,000 to 200,000. A list of rows is cut at 100,000 characters whatever you set.
What goes back to the model
- The same answer as the operation. Get rows gives up to 200 rows (50 unless the model asks for more), whatever the node's Limit; Upload never replaces a file, whatever the node's Overwrite.
- A list of rows is cut at 200 rows, and an answer longer than the characters limit (or than 100,000 characters of rows) is cut there as text (in
result, not as a half list). Either way thenotesfield says so. - Rows and files are data written by other people. HostWebhook tells the model to treat them as data, not as instructions, but a model can still be fooled by text inside a row: give it only the tables it needs.
- If a flow reads rows and a later AI step uses them, they go to that AI: see Supabase data and AI.
Testing a tool
operation in their payload that names another tool is refused.{ "operation": "select_supabase_rows", "table": "orders", "filters": [{ "column": "status", "operator": "eq", "value": "paid" }], "limit": 10 }The trigger
Pick Supabase as the service on a Trigger node and a Supabase credential. It checks one table of that project every few minutes. It reads the Data API with the project key: it creates nothing in your database, doesn't ask for its password and doesn't go through the connection pooler. Deactivating or deleting the trigger stops it.
What fires it
- Table is picked from your project (and Schema if it isn't
public). - Event Trigger is one of:
- New rows — a row whose cursor is above the last one seen. Use
created_at. A number (an id) works only if you tick Only my app sets this id: tick it only if nobody else can choose the id, because a very big id someone inserts would leave the trigger deaf. - Updated rows — a row whose
updated_atmoved past the last one seen. The column has to be atimestamptzyour app sets on every edit (a trigger in your database can do it). A row touched within 2 seconds of being created doesn't count as changed; give the creation column for that.
- New rows — a row whose cursor is above the last one seen. Use
- Filters are optional: only rows that match all of them.
- Rows per check is the most rows one check sends to the flow: 100 by default, up to 500. If more arrived, the next check continues where this one stopped. Rows your own flow wrote (with Ignore changes made by this flow on) don't count: the check reads on past them.
- Only rows that arrive after you activate it fire the flow; the cursor starts at today's latest row. If the table is empty when you activate it, every row that arrives later fires the flow, oldest first.
- Changing the table, the schema, the event, the cursor or the filters starts again from the latest row: nothing from before is sent. Apply changes does it right away; otherwise the next check does it, and if the new settings aren't valid the check fails with the reason.
Ignore changes made by this flow
On by default. Rows this flow writes with Insert, Update or Upsert rows don't fire it, so a flow that adds a row to the table it watches doesn't start itself forever. HostWebhook remembers the cursor each row had when the flow wrote it, for two checks plus an hour: a row is skipped only if it still has exactly that cursor, so an edit by someone else a minute later does fire. Rows a database function writes do fire it. It needs a primary key of one column on the table (HostWebhook reads it for you); without one it tells you, and the trigger may fire on rows the flow writes. In Updated rows, a bulk edit by the flow can hide edits other people made in the same moment.
What the trigger sends downstream
{
"event": "row.created",
"table": "public.orders",
"schema": "public",
"row": { "id": 1042, "status": "new", "total": 59.97, "created_at": "2026-11-05T10:00:00+00:00" },
"cursor": "2026-11-05 10:00:00+00"
}event is row.created for New rows and row.updated for Updated rows. row is the whole row as the table has it; use {{payload.row.status}}. Numbers that don't fit exactly in JSON come as text. Each row runs once: HostWebhook doesn't send it again if a check repeats.
Trying it out
The trigger's Test push reads the latest rows by the cursor column and shows them as they will arrive, so you can write {{payload.row.status}} in the nodes below it from the start. It sends 2 requests to Supabase, runs nothing and doesn't move the cursor.
Health check and pauses
Once a day HostWebhook checks each credential that has a trigger. If the key stops working, the triggers of that credential are paused and the card says why — “Paused: Supabase rejected the key. It may have been deleted. Reconnect.” — and the credential asks to be reconnected. A paused project, a table that is no longer in the Data API, five failed checks in a row, or a cursor that can no longer advance (many rows with the same value and no primary key to tell them apart, or a number that jumped far ahead) also pause the trigger, each with its own line. Fix the cause and turn it on again; it continues where it stopped.
Supabase or Postgres
Both reach the same database. Pick by what you need:
| You want | Use |
|---|---|
| One click, rows and files, a trigger that doesn't touch your database | Supabase |
| Your own SQL, joins, transactions | Postgres |
| To react to deleted rows | Postgres trigger |
| Row level security to apply (a role of your own) | Postgres, with a role |
The Supabase key skips row level security. The Postgres page has the SQL to create a role whose policies do apply.
Supabase data and AI
Rows and files from your Supabase project are your own data, in your own project, so HostWebhook doesn't hide them from AI the way it hides Google user data. If a flow reads them and a later step uses AI — the AI Node with your own provider credential, Hermes, our in-app assistant, Claude through the connector, an MCP client you connect, or a voice agent — what the flow read goes to that AI, under its terms. Decide which tables, buckets and functions an AI toolkit may touch, and what your flows send on.
What a flow reads stays in your run history for your plan's retention period and is then deleted. Files saved with Download a file are deleted after 24 hours.
Limits
Your Supabase plan sets what your project can take, and HostWebhook doesn't charge for Supabase calls. To keep one flow from flooding a project, HostWebhook queues the calls of each project: about 5 a second on average, in bursts of up to 10, shared by every node, trigger and AI tool of that project. A free project also pauses after a week without activity.
| What | Calls to Supabase |
|---|---|
| Connecting with one click | 4 to Supabase's account API (the access, your projects, creating the key and withdrawing the permission, which tries up to 3 times) and 1 to your project |
| Connecting by pasting a key | 1 (the check) |
| Activating a trigger | 2 (the table's description and today's cursor), 3 if the table has no one-column primary key |
| Each check of a trigger | 1 for each page of up to Rows per check rows. It reads a second page only while everything it finds was written by the flow itself (Ignore changes made by this flow), up to 20 pages, and never past 60 seconds |
| Test push | 2 (the table's description and the latest rows) |
| Health check (once a day) | 1 for each credential |
| Reading, adding, changing or deleting rows | 1 for each page or batch of up to 1,000 rows |
| Upserting from a flow a Supabase trigger started | Up to 1 more for each 100 rows, to tell the rows it added from the ones it replaced |
| Uploading, downloading, listing, signing or deleting files | 1 each (deleting takes up to 100 paths) |
| Each dropdown in the panel | 1 when you open it or press Refresh. The answer is usually kept for 60 seconds, except for a very large project (a schema with thousands of columns), which is asked again each time |
| Deleting the credential | 0 (you delete the key in Supabase) |
A trigger checking every 5 minutes makes at least 288 requests a day (more while it skips the rows its own flow wrote), each reading 500 rows at most and 5 MB at most (a response over 5 MB is read again with half the rows).
Gotchas
- One project per credential, and the table has to be in a schema the Data API exposes. A table that exists but isn't exposed says so.
- The key skips row level security. A policy that hides a row from your app does not hide it from this node.
- A cursor must only grow.
created_atdoes; an id someone else can choose, or a column you edit by hand, can leave the trigger blind to rows below the last one seen. - Many rows with the same cursor. If more rows than Rows per check share the same value, the trigger needs a primary key of one column to tell them apart; without one it pauses and says so.
- A unique index with NULLS NOT DISTINCT (Postgres 15) makes Upsert rows with an empty unique column replace a row that already exists. To tell added rows from replaced ones, HostWebhook skips the empty ones, so in such a table a row the flow replaced can be counted as its own and not fire the trigger. If your table has one, turn Ignore changes made by this flow off.
- A row too big to deliver is skipped. If one row's event would pass what HostWebhook can store (16 MB, for example a column with millions of numbers, or a JSON nested more than 90 levels deep), the trigger skips that row, says which one in the Logs, and goes on with the next ones.
- A change that was made but whose answer can't be read. If an insert, update, upsert, delete or function call went through but Supabase's answer is over 5 MB (or unreadable), the step finishes with a warning,
code: "answer_not_read"androws(orresult) set tonull, so the next step can tell it from an empty answer. Check your project before you run it again. - A signed link can't be withdrawn one by one. Whoever has it can download the file until it expires. To cut it, delete the file or change its path.
- Downloaded files last 24 hours in HostWebhook's storage. Copy what you need to keep.
- If you delete the key in Supabase, the nodes fail with the key line and the triggers pause until you reconnect.
Supabase is a trademark of Supabase Inc. HostWebhook works with Supabase and is not affiliated with, endorsed by or sponsored by Supabase.