"default".
GET /api/v1/workspaces//source
Returns the data source configuration for a workspace, including the database dialect and the list of approved tables.Path parameters
string
required
The workspace identifier. Use
"default" for the default workspace.Response
string
The identifier of the workspace.
string
The human-readable name of the workspace.
string
The SQL dialect of the source database (e.g.,
"postgresql").string
The database connection URL with credentials redacted for safe display.
string | null
The database schema to use, if configured.
null means the database default.string[]
The list of table names approved for querying by the AI.
boolean
Whether the workspace operates in read-only mode. Always
true for source workspaces.Example
POST /api/v1/workspaces//test-connection
Tests the database connection for a workspace and returns whether the connection succeeded.Path parameters
string
required
The workspace identifier. Use
"default" for the default workspace.Response
string
The identifier of the workspace that was tested.
boolean
true if the connection succeeded, false if it failed.string
The SQL dialect of the source database.
string
The database connection URL with credentials redacted.
string
A human-readable message describing the connection result.
Example
GET /api/v1/workspaces//schema
Returns the full table and column schema for a workspace, including column types, nullability, primary keys, and foreign key relationships.Path parameters
string
required
The workspace identifier. Use
"default" for the default workspace.Response
string
The identifier of the workspace.
object
The workspace source configuration. Same structure as the
/source endpoint response.object[]
List of tables in the workspace schema.