> For the complete documentation index, see [llms.txt](https://docs.stacksync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres.md).

# Authorize Postgres

You can also watch a quick video on how to authorize Postgres

{% embed url="<https://youtu.be/J4Q09Vt57h8>" %}

## Adding Credentials to Stacksync

#### 1. Select Postgres in the Create Sync page in Stacksync.

<figure><img src="/files/xDIXOn4VdhZmJ2j6CWuf" alt=""><figcaption></figcaption></figure>

#### 2. Add your Postgres credentials as Connection String or as Parameters.

<figure><img src="/files/yaZ1EDdPKi7RlDt621hu" alt=""><figcaption></figcaption></figure>

#### 3. (Optional) Upload your SSL Root Certificate file

<figure><img src="/files/NZC14x16IoPjG4rQh0zA" alt=""><figcaption></figcaption></figure>

#### 4. (Optional) Add SSH user and SSH host

<figure><img src="/files/7pSA8NEVjbbqwsaREQsU" alt=""><figcaption></figcaption></figure>

#### 5. Click "Authorize App"

<figure><img src="/files/b53lxxakvw6WZyLb40Rs" alt=""><figcaption><p>Click "Authorize App"</p></figcaption></figure>
