string
required
Bearer token obtained from the authenticate endpoint.
string
required
Display title for the query.
string
required
The natural-language instruction passed to the model after the stored SQL runs. Parameter placeholders in this field are not substituted; keep parameters in
sql.string
The SQL Server statement to execute. Use
{{param_name}} placeholders for runtime values; quote placeholders used as string literals, for example WHERE Region = '{{region}}'. The server extracts unique placeholder names in first-appearance order. The storage API accepts an omitted value and stores null, but a saved query needs SQL to run as a chat turn.string
Optional human-readable description of what the query does.
Response
Returns the created saved query object with status200.
string
required
Unique identifier for the newly created query.
string
required
Organization the query belongs to.
string
required
Display title for the query.
string | null
Description of the query, if provided.
string
required
The natural language instruction for this query.
string | null
The SQL associated with this query, or
null if omitted.string[]
required
Names of all
{{param_name}} placeholders detected in sql, auto-extracted by the server. This field is read-only.string
required
Member ID of the user who created this query.
string
Display name of the user who created this query.
string
required
ISO 8601 timestamp when the query was created.
string
required
ISO 8601 timestamp when the query was created.
keywords and display fields are not stored by this endpoint.