API Reference
cURL
curl --request POST \ --url https://api.example.com/api/text2sql/databases \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "type": "<string>", "url": "<string>", "read_only": true } '
{ "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>" }
Create a new database configuration
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request schema for creating a new database configuration
Database display name
1 - 255
Database type (sqlite, postgresql, mysql, sqlserver)
Database connection URL
1
Whether database is read-only
Successful Response
Response schema for database configuration