Documentation Index
Fetch the complete documentation index at: https://docs.trellis.sh/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token obtained from the authenticate endpoint.
Display title for the query.
The natural language instruction that describes what this query does. Passed to the AI agent when the query is invoked via chat.
The SQL to execute when this query is invoked. Use
{{param_name}} placeholders for values that should be supplied at runtime (e.g. WHERE year = {{year}}). The server automatically extracts these into the parameters field on the response. If omitted, the query is prompt-only — the prompt is passed directly to the AI agent without pre-executing any SQL.Optional human-readable description of what the query does.
Optional list of keywords for automatic semantic matching. When a chat message’s content matches these terms, this query may be surfaced automatically.
Response
Returns the created saved query object.Unique identifier for the newly created query.
Organization the query belongs to.
Display title for the query.
Description of the query, if provided.
The natural language instruction for this query.
The SQL associated with this query, or
null for prompt-only queries.Keywords for semantic matching, if provided.
Names of all
{{param_name}} placeholders detected in sql, auto-extracted by the server. This field is read-only.Member ID of the user who created this query.
Display name of the user who created this query.
ISO 8601 timestamp when the query was created.
ISO 8601 timestamp when the query was created.