> For the complete documentation index, see [llms.txt](https://docs.whalesync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whalesync.com/sync/connectors/supabase/getting-your-connection-string.md).

# Getting your connection string

To connect Supabase with a connection string instead of OAuth, copy the Direct connection string from Supabase and paste it into a Postgres connection.

> [!NOTE]
> The Supabase connector connects with OAuth: you sign in to Supabase from Whalesync and pick a project, with no connection string or password to copy. See [Connecting to Supabase](https://docs.whalesync.com/sync/connectors/supabase.md#connecting-to-supabase).
> 
> If you'd rather connect with a connection string, use the Postgres connector instead. The steps below get the string from Supabase.

[YouTube video](https://www.youtube.com/watch?v=LzOdTIZOnaM)

## Step 1: Choose your database

Navigate to your [Supabase dashboard](https://supabase.com/dashboard/organizations) and select the database you want to connect:

![Screenshot of a database on the Supabase dashboard](<https://docs.whalesync.com/_astro/image%20(4).CGaDXiBe_2uMtAn.webp> "Pick your database")

## Step 2: Get your connection string

Click "Connect":

![](https://docs.whalesync.com/_astro/Screenshot%202024-12-31%20at%201.10.36%E2%80%AFAM.BPksRC49_2vWLDO.webp "Connect button")

Copy the full connection string under "Direct connection":

![](<https://docs.whalesync.com/_astro/image%20(2).sYOMr2IC_1MY78t.webp> "Connection string")

> [!WARNING]
> Replace `[YOUR-PASSWORD]` with your database password.\
> _(ask a developer on your team if you don't know it)_

## Step 3: Add a Postgres connection in Whalesync

In Whalesync, pick **Postgres** as the app to connect, and paste the full connection string into the "Postgres connection string" field. See [Authorize Postgres](https://docs.whalesync.com/sync/connectors/postgres/authorize-postgres.md) for query parameters you can add to the string.
