For the complete documentation index, see llms.txt. This page is also available as Markdown.

Using Supabase in n8n

Introduction

Supabase is an open-source Postgres development platform that gives you a full backend β€” database, authentication, instant APIs, file storage, realtime subscriptions, and vector search β€” built on top of standard, unmodified Postgres. Rather than stitching together separate services for auth, storage, and data, Supabase exposes them all through one project, with every table automatically available as a REST and realtime API the moment you create it. Because it's just Postgres underneath, nothing about your data is proprietary or locked into a vendor-specific format: it's the same database and SQL you already know, with a managed layer of tooling on top.

Using Supabase within n8n workflows provides a seamless, zero-lock-in data backend that natively integrates standard PostgreSQL capabilities alongside realtime triggers and built-in vector storage. Through n8n’s native Postgres and Supabase nodes, automation workflows can directly execute complex SQL queries, automatically sync incoming webhooks or API payloads into relational tables, leverage Row Level Security for precise multi-tenant data access, and instantly run vector similarity searches for AI agent memoryβ€”all without needing custom middleware or extra storage tools.


Steps

Step 1: Find your API keys

  1. Open your Supabase dashboard and select your project.

  2. In the bar next to the Supabase logo and your project name you will find Connect, click on it.

  3. Select Server Build APIs.

  4. Look on the page until you find "Set environment variables".

  5. You will see SUPABASE_URL= and SUPABASE_PUBLISHABLE_KEY=

  6. Copy the URL and the Key, you will need them both later in n8n.

Step 2: Add Supabase credentials in n8n

  1. Open your n8n instance.

  2. In the left sidebar, click Credentials.

  3. Click New Credential.

  4. Search for Supabase API and select it.

  5. Paste in:

    • Host β€” SUPABASE_URL from Step 1.

    • Service Role Secret β€” SUPABASE_PUBLISHABLE_KEY from Step 1.

  6. Click Save.

Your n8n instance can now connect to your Supabase project.

Step 3: Use Supabase inside a workflow

  1. Create a new workflow, or open an existing one.

  2. Click the + button to add a node, and search for Supabase.

  3. Select the credential you just created in Step 3.

  4. Choose an operation β€” for example Get Rows, Insert Row, or Update Row β€” and pick the table you want to work with.

  5. Click Execute Node to test it. If it's set up correctly, you'll see your table's data appear directly inside n8n.

πŸ’‘ Tip: Start with a simple Get Rows action on a test table first. It's the quickest way to confirm the connection works before building anything more complex.

πŸ’‘ Tip: When your Supabase returns no output, check if RLS is enabled on the table you are trying to get rows from. Disabling RLS allows n8n to "see" the rows and return them as output. For more information on RLS, check GLBNXT Docs: Understanding Row Level Security.


What happens next?

With this connection in place, you can build workflows that read from and write to your Supabase tables automatically β€” for example, saving form submissions, updating records based on an incoming webhook, or feeding data into an AI workflow.


Need help? Contact the GLBNXT support team or ask a GLBNXT agent to walk you through the steps.

Last updated

Was this helpful?