/api/agent
POST /api/agent/v2/construct-query
Construct an MBQL query from a portable MBQL 5 representations JSON payload.
The body is {"query": <external-query>} where <external-query> is a JSON object matching ::lib.schema/external-query — see the construct_notebook_query tool documentation for the format reference. Returns a base64-encoded MBQL query that can be executed via /v1/execute or paginated via /v2/query.
post/api/agent/v2/construct-query
Request body
Response
Successful response