n8n and Supabase Integration Guide

n8n and Supabase: database rows inside your workflows

n8n ships a built-in Supabase node that creates, gets, updates and deletes rows in Supabase tables from any workflow. Teams pair them so Supabase holds the durable data, such as leads, enriched accounts or app events, while n8n moves that data between webhooks, APIs and other tools on a schedule or on demand.

How they connect: n8n builds and maintains the Supabase node, which you add to a workflow and authenticate with a Supabase credential holding your project host and secret key. Checked December 3, 2026.

What the native integration does

What syncs between n8n and Supabase

  • Create a row in a Supabase table
  • Get a single row or get all rows, with string filters
  • Update and delete rows
  • Tables in the public schema by default, or a custom schema when Use Custom Schema is on
  • Other Supabase endpoints through the HTTP Request node reusing the Supabase credential
  • Row operations exposed as a tool an n8n AI agent can call

Who owns what

The tools in this pair and their jobs
ToolCategoryIts job in this pair
n8nAutomationWorkflow automation with branching, code steps and a self-host option.
SupabaseData warehouses and databasesAn open source Postgres development platform that bundles a database, authentication, APIs, storage and edge functions for building applications.

Workflows worth building

Workflow

Webhook leads into a Supabase table

  1. n8nWebhook received
  2. SupabaseLookup
  3. SupabaseRow written

Trigger. A form tool posts a new submission to an n8n Webhook node.

Outcome. Supabase keeps one row per lead even when the same person submits twice.

  • n8n normalizes the payload fields with an Edit Fields node.
  • The Supabase node gets rows filtered on email to look for an existing lead.
  • If nothing matches, the node creates a row, and otherwise it updates the matching row.
  • The workflow answers the form tool with a success response.
Workflow

Nightly enrichment pass

  1. n8nSchedule fires
  2. SupabaseRows fetched
  3. n8nAPI called
  4. SupabaseRows updated

Trigger. An n8n Schedule Trigger fires each night.

Outcome. Supabase holds enriched records without anyone running exports by hand.

  • The Supabase node gets all rows where an enrichment column is still empty.
  • n8n calls an enrichment API with the HTTP Request node.
  • An update operation writes the returned fields back to each Supabase record.
  • Rows that fail get flagged in a status column for review.
Workflow

AI agent with database access

  1. n8nChat message
  2. SupabaseRows read
  3. n8nAgent replies

Trigger. A teammate asks an n8n chat agent a question about an account.

Outcome. An internal assistant answers from the live Supabase database, limited to the tables you expose.

  • The AI Agent node calls the Supabase node as a tool.
  • The model fills in the table and filter parameters from the question.
  • Supabase returns the matching rows to the agent.
  • The agent answers from the table data instead of guessing.

Set it up

  1. Enable the Data API for your Supabase project before connecting n8n.

  2. Copy the Project URL from Integrations > Data API in Supabase and drop the /rest/v1 suffix.

  3. Create or reveal a secret key under Project Settings > API Keys in Supabase.

  4. Create a Supabase credential in n8n with that host and secret key, then add the Supabase node to a workflow.

  5. Pick the Row resource and an operation, and turn on Use Custom Schema if the table lives outside public.

What breaks, and the fix

Common problems and their fixes
ProblemFix
Rows exist in Postgres but the n8n Supabase node returns nothing.Row Level Security blocks reads until policies exist, so add RLS policies in Supabase that grant the access the workflow needs.
A self-hosted Supabase in Docker refuses connections from n8n.Put both containers on the same bridge network and set Host to the gateway container, http://supabase-kong:8000 by default, instead of localhost.
Filtering on a JSON metadata property returns every row.Set Select Type to String and write the filter as metadata->>property=operator.value, such as metadata->>age=gte.21.
The n8n credential stops working after Supabase key changes.Supabase is retiring legacy service_role keys, so create a new secret key under API Keys and paste it into the n8n credential.

n8n and Supabase: questions

Is there a native n8n and Supabase integration?

Yes. n8n documents a built-in Supabase app node and a matching Supabase credential type in its integrations docs.

Which Supabase tables can the node see?

Only the public schema unless you switch on Use Custom Schema and type in another schema name.

What if the Supabase node lacks an operation I need?

Use the HTTP Request node, set Authentication to Predefined Credential Type and select your Supabase credential.

Why does the anon key return empty results?

Tables made in the Table Editor have RLS on by default, and the anon key sees nothing until policies allow it. The n8n credential expects a secret key instead.

Can an n8n AI agent use Supabase directly?

Yes. Attach the node to an agent as a tool, and the model can set many of its parameters on its own.

Startup? Let's talk.

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.