Database Query
Run a natural language query against connected SQL databases.
Request
This endpoint expects an object.
query
The natural language query to run against connected databases.
artifacts
List of SQL database artifacts to query against. At least one artifact of type ‘sql_database’ is required.
Response
This endpoint returns an object.
content
List of content blocks generated by the tool. Blocks can include plain text, citations, source attributions, or images.
is_error
True if the tool encountered an error during execution.
Errors
401
Unauthorized
422
Unprocessable Entity

