> ## Documentation Index
> Fetch the complete documentation index at: https://www.artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch databases for an unsaved connector

> Lists available databases on the target using an unsaved connector configuration. Useful during connector setup to discover existing databases. Response metadata may include Iceberg S3 table bucket maintenance defaults.

`POST /connectors/databases`

## Authorization

* `Authorization` (header): API key passed as a Bearer token in the Authorization header.

## Body (application/json)

* `dataPlaneName` (string)
* `defaultDatabase` (string | null)
* `draftPipelineUUID` (string<uuid> | null): On create only: the draft pipeline this connector is for.
* `environmentUUID` (string<uuid> | null)
* `label` (string)
* `privateLinkUUID` (string<uuid> | null)
* `sharedConfig` (object | null)
* `snapshotPrivateLinkUUID` (string<uuid> | null)
* `sshTunnelUUID` (string<uuid> | null)
* `type` (string)
* `uuid` (string)

## Example request

```bash
curl --request POST \
  --url https://api.artie.com/connectors/databases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "dataPlaneName": "<string>",
  "defaultDatabase": "<string>",
  "draftPipelineUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "environmentUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "label": "<string>",
  "privateLinkUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sharedConfig": {},
  "snapshotPrivateLinkUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sshTunnelUUID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "<string>",
  "uuid": "<string>"
}'
```

## Responses

### 200 OK

* `items` (object[], required)
  * `name` (string, required)
* `metadata` (object[])
  * `isDate` (boolean, required)
  * `key` (string, required)
  * `value` (string | number | boolean | object | (string | number | boolean | object | null)[] | null, required)
    * `Option 1` (string)
    * `Option 2` (number)
    * `Option 3` (boolean)
    * `Option 4` (object)
    * `Option 5` ((string | number | boolean | object | null)[])
      * `Option 1` (string)
      * `Option 2` (number)
      * `Option 3` (boolean)
      * `Option 4` (object)
      * `Option 5` (null)
    * `Option 6` (null)

```json
{
  "items": [
    {
      "name": "<string>"
    }
  ],
  "metadata": [
    {
      "isDate": true,
      "key": "<string>",
      "value": "<string>"
    }
  ]
}
```

### 400 Bad Request

### 500 Internal Server Error