---
title: "Get Databases"
method: GET
path: "/api/text2sql/databases"
tags: ["text2sql"]
---

# Get Databases

`GET /api/text2sql/databases`

Get user's database configurations

## Response `200`

Successful Response

- DatabaseResponse[]
  - `id` integer, required
  - `name` string, required
  - `type` string, required
  - `url` string, required
  - `read_only` boolean, required
  - `status` string, required
  - `table_count` integer, nullable
  - `last_connected_at` string, nullable
  - `error_message` string, nullable
  - `created_at` string, required
  - `updated_at` string, required

---

[API](https://skmtc.dev/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.dev/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/66a05609bfdd/schema)
