v12

latestOpenAPI 3.1.0AGPL-3.0raw.githubusercontent.com2026-05-286377631.6 MB
/api/agent

POST /api/agent/v2/query

Execute a portable MBQL 5 representations JSON query and stream the results, with continuation-token pagination.

Accepts either a JSON body (same shape as /v2/construct-query) or a continuation_token from a previous response. Returns results with column metadata and an optional continuation_token for fetching the next page.

post/api/agent/v2/query

Request body

OR

Response

Successful response

continuation_tokenstring nullable
errorstring
row_countinteger
running_timeinteger
status'completed' | 'failed' required