Skip to main content
Saved queries store reusable, parameterized SQL Server queries paired with a natural-language formatting instruction. Run one as a chat turn over the WebSocket or the durable REST turn endpoint. The server executes the stored SQL through the same datasource permission gates used by the agent, emits synthetic tool_call and tool_result frames, then asks the model to format the result using the stored prompt. There is no standalone saved-query execution endpoint. The turn must have a datasource integration. Supply every parameter value as a string. The turn’s free-text message is persisted for display, but the stored saved-query prompt is the instruction passed to the model. This endpoint returns only user-visible queries (display = true), ordered by most recent update. It is not paginated.
string
required
Bearer token obtained from the authenticate endpoint.

Response

array
required
List of saved queries.