Execute a semantic query
Changed onRuns 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.
Request
- Base URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- URLhttps://omniapp.co/api/v1/query/run
- AuthHTTP bearer
Query parameters
Target user ID (for org-scoped API keys)
Request body
Example request
{
"branchId": "550e8400-e29b-41d4-a716-446655440000",
"cache": "SkipCache",
"environmentConnectionId": "550e8400-e29b-41d4-a716-446655440000",
"query": {
"fields": [
"orders.total_amount",
"orders.created_date"
],
"limit": 1000,
"modelId": "123e4567-e89b-12d3-a456-426614174000"
},
"timezone": "America/Los_Angeles",
"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".
Changes
- breaking
removed
subschema #1subschema #2subschema #3subschema #4subschema #5subschema #6subschema #7subschema #8from the//request propertyoneOflist - info
added
subschema #1subschema #2subschema #3subschema #4subschema #5subschema #6subschema #7subschema #8to the//request propertyoneOflist
- breaking
- breaking
added the new required request property
/ - breaking
added the new required request property
/ - breaking
the request property
became required - breaking
the
request property type changed from no type toobject - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/
- breaking