Execute Malloy query
Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Name of the environment Standard identifier pattern for resource names
^[a-zA-Z0-9_-]+$Name of the package Version identifier pattern supporting dots and dashes
^[a-zA-Z0-9_.-]+$Path to the model within the package Path pattern supporting slashes, dots, and dashes
^[a-zA-Z0-9_/.-]+$Body
Request body for executing a Malloy query
Query string to execute on the model. If the query parameter is set, the queryName parameter must be empty.
Name of the source in the model to use for queryName, search, and topValue requests.
Name of a query to execute on a source in the model. Requires the sourceName parameter is set. If the queryName parameter is set, the query parameter must be empty.
If true, returns a simple JSON array of row objects in the form {"columnName": value}. If false (default), returns the full Malloy result with type metadata for rendering.
Version ID
DEPRECATED: Use givens (native Malloy runtime parameters) instead.
Targets the deprecated #(filter) annotation path. See docs/givens.md
for migration recipes.
Filter parameter values keyed by filter name. Used with sources that
declare #(filter) annotations. Each value is either a string or an
array of strings.
DEPRECATED: Use givens (native Malloy runtime parameters) instead.
See docs/givens.md for migration recipes.
When true, skip server-side #(filter) injection entirely.
Per-query given values that override model defaults. Keys are given names declared in the model's given: block. Values must match the declared type (string, number, boolean, date, etc.). See Malloy givens documentation for accepted value shapes.
Response
Query execution results