| Field | Type | Required | Notes |
|---|---|---|---|
org_id | string | ✅ | Tenant id (from login). |
language | string | ✅ | sql or promql. |
statement | string | ✅ | Query text. |
time_range | object | ✅ | { "start": <us>, "end": <us> } — microseconds. |
stream | object | — | { "name", "stream_type" }; stream_type ∈ logs/metrics/traces/enrichment. |
limit | integer | — | Row cap. |
Accept: application/x-ndjson to stream the result (bypasses the query_result cache).