# Retool

### 1. Access your dashboard

### 2. Click on "Database"

<figure><img src="/files/1H9LOk4kWJqQ7yvRnru4" alt=""><figcaption><p>Click on "Database"</p></figcaption></figure>

### 3. Reveal Database Options

<figure><img src="/files/nDtpvrD5fTj5EwED8hEF" alt=""><figcaption><p>Click and reveal options</p></figcaption></figure>

### 4. Click "Connection"

<figure><img src="/files/JOGWURtVKWMrvqZHDRF6" alt=""><figcaption><p>Click "Connection"</p></figcaption></figure>

### 5. Reveal Postgres Connection URL

<figure><img src="/files/9DcWZaIdJvylwoGrtrEH" alt=""><figcaption><p>Reveal the Connection URL</p></figcaption></figure>

### 6. Copy connection URL

<figure><img src="/files/mS7zsxtmZTLpsujsK0Sa" alt=""><figcaption><p>Copy the connection URL</p></figcaption></figure>

### 7. Get credentials from connection URL

{% hint style="info" %}
Retool doesn't give you the port info to connect Postgres via connection URL.
{% endhint %}

From your connection URL. Manually get the data needed to fill the connection form that will be shown in Step 9.&#x20;

* **Database Type**
* **Host**
* **Port**
* **Username**
* **Password**
* **Database**
* **Schema**

### 6. Click on "Connections"

<figure><img src="/files/zlGWQJsm10WtcOt4a652" alt=""><figcaption><p>Go to "Connections" on Stacksync</p></figcaption></figure>

### 7. Click on "Create New Connection"

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

### 8. Click "Postgres"

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

### 9. Fill the connection form

<figure><img src="/files/i5c51FteBW1IncGSgDyo" alt=""><figcaption><p>Fill the connection form with all the data from step 7</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stacksync.com/two-way-sync/connectors/postgres/authorize-postgres/retool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
