/api/agent

POST /api/agent/v1/construct-query

Construct an MBQL query from a table or metric.

Returns a base64-encoded MBQL query that can be used with the query API.

For tables, supports: filters, fields, aggregations, group_by, order_by, limit. For metrics, supports: filters, group_by (aggregation is defined by the metric).

post/api/agent/v1/construct-query

Request body

OR

Response

Successful response

querystring required

Changes