Need help? Get answers from the docs with Omni's in-app AI! Log in to your Omni instance and open the Omni Agent in the sidebar.
curl --request GET \
--url https://{instance}.omniapp.co/api/v1/query/wait \
--header 'Authorization: Bearer <token>'{
"job_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "COMPLETE",
"client_result_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"summary": {
"sql": "SELECT * FROM order_items LIMIT 10",
"total_rows": 10,
"execution_time_ms": 245
},
"result": "QVJST1cxAAD/////...",
"timed_out": false
}Polls for the results of one or more query jobs. Use this endpoint when a request to the Run query endpoint times out and returns remaining_job_ids in the response.
This endpoint will wait for the specified jobs to complete and return their results. If the jobs are still processing when the request times out, the response will include the remaining job IDs to poll again.
curl --request GET \
--url https://{instance}.omniapp.co/api/v1/query/wait \
--header 'Authorization: Bearer <token>'{
"job_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "COMPLETE",
"client_result_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"summary": {
"sql": "SELECT * FROM order_items LIMIT 10",
"total_rows": 10,
"execution_time_ms": 245
},
"result": "QVJST1cxAAD/////...",
"timed_out": false
}Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
An array of job IDs to poll for results. These IDs are returned in the remaining_job_ids property when a request to the Run query endpoint times out.
Format the parameter as a JSON array (e.g., ?job_ids=["job-id-1","job-id-2"]).
Successful response containing the query results for completed jobs.
If all jobs have completed, timed_out will be false and the response will include the full query results.
If some jobs are still processing when this request times out, timed_out will be true and remaining_job_ids will contain the IDs of jobs that are still running. Continue polling with these IDs until all jobs complete.
The unique identifier for the query job
Job status (e.g., COMPLETE, PLANNED)
Client-side result identifier
Query execution summary including SQL, stats, and field metadata
Cache information including TTL and data freshness
The executed query details
Base64 encoded Apache Arrow table containing query results
Server-side streaming metrics
Show child attributes
IDs of jobs still processing if this request timed out. Continue polling with these IDs.
Indicates if the request timed out. If true, use remaining_job_ids to poll again.
Was this page helpful?