---
docId: doc_50d41a80cc8d4a7cb087cf9bf29e53ca
title: List databases
description: "List all workspace database connections, sorted by name."
api:
  group: herramientas/bases-de-datos
  auth: bearer
  operations:
    - operationId: listDatabases
      method: GET
      path: /v1/tools/databases
      postmanName: List databases
---

<script>
  import { Ways } from '$lib/components';
</script>

# List databases

Returns all the connections in the workspace, sorted by name, in a single list.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl https://api.platic.ai/v1/tools/databases \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.tools.databases.list();
```

</Ways.Way>
</Ways>

## Response

`200 OK`. `data` is the list of connections, each with the fields in [get a database](/api-reference/databases/get#response-fields) except `nextStep`.

```json
{
  "status": "success",
  "data": [
    {
      "id": "Xb2mQe7LtR9sKd4fHw1N",
      "name": "store",
      "description": "Orders, customers, and inventory of the online store.",
      "engine": "postgres",
      "host": "db.example.com",
      "port": 5432,
      "database": "store",
      "user": "readonly",
      "ssl": "require",
      "status": "enabled",
      "hiddenTables": ["payments"],
      "hiddenColumns": ["customers.phone"],
      "pageSize": 50,
      "timeoutSeconds": 5,
      "password": { "state": "bound", "secretId": "7e4a1c9b3d5f7a0c2e4b6d8f0a1c3e5b7d9f1a3c5e7b9d0f2a4c6e8b0d2f4a6c" },
      "tools": [
        { "id": "Xb2mQe7LtR9sKd4fHw1N_list_tables", "name": "db_store_list_tables", "tool": "list_tables" },
        { "id": "Xb2mQe7LtR9sKd4fHw1N_describe_table", "name": "db_store_describe_table", "tool": "describe_table" },
        { "id": "Xb2mQe7LtR9sKd4fHw1N_query", "name": "db_store_query", "tool": "query" },
        { "id": "Xb2mQe7LtR9sKd4fHw1N_next_page", "name": "db_store_next_page", "tool": "next_page" }
      ],
      "lastTest": { "ok": true, "at": "2026-11-14T16:01:12.000Z", "version": "PostgreSQL 16.4", "tableCount": 3 },
      "createdAt": "2026-11-14T16:00:00.000Z",
      "updatedAt": "2026-11-14T16:01:12.000Z"
    }
  ]
}
```

## Errors

| Status | `details.code` | When it happens |
|--------|----------------|-----------------|
| `403` | `FORBIDDEN` | The person behind the token does not have access to Integrations |

## Notes

- When listing, `password.state` says `bound` if there is a password, without checking it. To know whether it is still authorized, [get the connection](/api-reference/databases/get).
- A workspace has up to 20 connections, so the list is not paginated.
