/api/agent
POST /api/agent/v2/construct-query
Changed onConstruct 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
- Base URL(relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-API-Key
Request body
Response
Successful response
Changes
- breaking
the
request property type changed from no type toobject - info
added the new optional request property
- info
added the optional property
to the response with the status
- breaking
- info
endpoint added
- info