# List databases

`GET https://api.instacloud.com/projects/{projectId}/database/databases`

**Token scope:** `account` · `org` · `project` — read-only tokens allowed.

List databases in the postgres server.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `branch` | query | `string` | no | branch name (default branch if omitted) |
| `group` | query | `string` | no | postgres service name (default: the sole postgres service) |
| `projectId` | path | `string` | yes |  |

## Response 200

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `databases` | `object[]` | no |  |
| `databases.name` | `string` | no |  |
| `databases.createdAt` | `string` | no |  |
| `databases.connString` | `string` | no |  |
| `databases.privateConnString` | `string` | no | the private network lane twin of connString — it CONTAINS the password, exactly like connString. Present only while the instance has private access. |

## Response 400

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |

## Response 403

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |

## Response 404

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |

## Response 409

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |

## Response 502

Default Response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `error` | `string` | yes |  |
