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/ai/jobs/{jobId}/result \
--header 'Authorization: Bearer <token>'{
"actions": [
{
"type": "generate_query",
"message": "I'll generate a query to find the top 5 products by total revenue.",
"timestamp": "2025-01-15T10:00:10.000Z",
"result": {
"queryName": "Top 5 Products by Revenue",
"status": "success",
"query": {},
"csvResult": "Name,Total Revenue\nRay-Ban Sunglasses,\"678,994.41\"\nLevi's 501 Jeans,\"475,072.00\"",
"csvResultWasTruncated": false,
"hasResults": true,
"totalRowCount": 5
}
}
],
"message": "### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072",
"resultSummary": "### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072",
"topic": "order_items",
"omniChatUrl": "https://my-org.omni.co/chat/660e8400-e29b-41d4-a716-446655440001"
}Retrieve the full result of a completed AI job, including all actions taken by the AI (queries generated, data retrieved) and the final summarized answer.
Results are only available for jobs in COMPLETE state and are retained for 14 days after completion. The response is streamed directly from storage.
curl --request GET \
--url https://{instance}.omniapp.co/api/v1/ai/jobs/{jobId}/result \
--header 'Authorization: Bearer <token>'{
"actions": [
{
"type": "generate_query",
"message": "I'll generate a query to find the top 5 products by total revenue.",
"timestamp": "2025-01-15T10:00:10.000Z",
"result": {
"queryName": "Top 5 Products by Revenue",
"status": "success",
"query": {},
"csvResult": "Name,Total Revenue\nRay-Ban Sunglasses,\"678,994.41\"\nLevi's 501 Jeans,\"475,072.00\"",
"csvResultWasTruncated": false,
"hasResults": true,
"totalRowCount": 5
}
}
],
"message": "### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072",
"resultSummary": "### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072",
"topic": "order_items",
"omniChatUrl": "https://my-org.omni.co/chat/660e8400-e29b-41d4-a716-446655440001"
}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
The unique identifier of the AI job
Job results retrieved successfully
Ordered list of actions the AI took during execution. Each action represents a step such as generating a query, executing it, or synthesizing a final answer.
Show child attributes
The AI's final response message in Markdown format. This is the complete answer to the original prompt, incorporating data from all executed queries.
"### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072"
Summary of the job result. Typically matches the final message content.
"### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072"
The topic name used for query generation.
"order_items"
URL to view this conversation in the Omni chat interface. Opens the chat session where the job actions and results are visible.
"https://my-org.omni.co/chat/660e8400-e29b-41d4-a716-446655440001"
Was this page helpful?