v4
latestOpenAPI 3.1.02026-08-01207318738.7 KBExecute a semantic query
Runs a semantic query. By default (no resultType) the response is a stream of newline-delimited JSON (Content-Type: text/ndjson), one JSON object per line: a jobs_submitted header, then one line per job as it reaches a terminal state (a completed job carries the result set as base64-encoded Arrow IPC in result; use summary.fields to interpret the decoded columns), then a footer. A footer with non-empty remaining_job_ids means the wait window elapsed before every job finished — poll GET /api/v1/query/wait with those IDs until the list is empty. When resultType is set, the response is instead a single CSV, XLSX, or JSON document, and a timeout is reported as a 408.
Query parameters
Target user membership ID (for org-scoped API keys)
Target user membership ID (for org-scoped API keys)
Request body
Example request
{
"branchId": "550e8400-e29b-41d4-a716-446655440000",
"cache": "normal",
"environmentConnectionId": "550e8400-e29b-41d4-a716-446655440000",
"userId": "550e8400-e29b-41d4-a716-446655440000"
}Response
Query executed or started successfully. The default response (no resultType) is a text/ndjson stream — one JSON object per line, each matching QueryRunStreamLine; it cannot be parsed as a single JSON document. When resultType is set, the body is a single CSV, XLSX, or JSON document instead.
Array of result-row objects keyed by field name. Returned only when resultType is "json".