Skip to main content
GET
/
api
/
text2sql
/
databases
Get Databases
curl --request GET \
  --url https://api.example.com/api/text2sql/databases \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "name": "<string>",
    "type": "<string>",
    "url": "<string>",
    "read_only": true,
    "status": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "table_count": 123,
    "last_connected_at": "<string>",
    "error_message": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

id
integer
required
name
string
required
type
string
required
url
string
required
read_only
boolean
required
status
string
required
created_at
string
required
updated_at
string
required
table_count
integer | null
last_connected_at
string | null
error_message
string | null