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/conversations/{conversationId} \
--header 'Authorization: Bearer <token>'{
"id": "660e8400-e29b-41d4-a716-446655440001",
"userId": "990e8400-e29b-41d4-a716-446655440004",
"organizationId": "880e8400-e29b-41d4-a716-446655440003",
"createdAt": "2025-01-15T10:00:00.000Z",
"updatedAt": "2025-01-15T10:05:00.000Z",
"messages": [
{
"role": "user",
"content": "What are the top 5 products by revenue?",
"timestamp": "2025-01-15T10:00:00.000Z"
},
{
"role": "assistant",
"content": "### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072\n3. **T-Shirt** - $320,150\n4. **Sneakers** - $289,033\n5. **Hat** - $201,487",
"timestamp": "2025-01-15T10:01:30.000Z",
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"omniChatUrl": "https://my-org.omni.co/chat/660e8400-e29b-41d4-a716-446655440001"
},
{
"role": "user",
"content": "Show me revenue by month for sunglasses",
"timestamp": "2025-01-15T10:03:00.000Z"
},
{
"role": "assistant",
"content": "### Sunglasses Revenue by Month\n\n- January: $52,430\n- February: $48,221\n- March: $61,992",
"timestamp": "2025-01-15T10:05:00.000Z",
"jobId": "550e8400-e29b-41d4-a716-446655440010",
"omniChatUrl": "https://my-org.omni.co/chat/660e8400-e29b-41d4-a716-446655440001"
}
]
}Retrieve a conversation with its full message history — alternating user and assistant turns. Each assistant turn carries the originating jobId and an omniChatUrl deep link.
The conversations returned by this API depend on the type of API key being used:
curl --request GET \
--url https://{instance}.omniapp.co/api/v1/ai/conversations/{conversationId} \
--header 'Authorization: Bearer <token>'{
"id": "660e8400-e29b-41d4-a716-446655440001",
"userId": "990e8400-e29b-41d4-a716-446655440004",
"organizationId": "880e8400-e29b-41d4-a716-446655440003",
"createdAt": "2025-01-15T10:00:00.000Z",
"updatedAt": "2025-01-15T10:05:00.000Z",
"messages": [
{
"role": "user",
"content": "What are the top 5 products by revenue?",
"timestamp": "2025-01-15T10:00:00.000Z"
},
{
"role": "assistant",
"content": "### Top 5 Products by Revenue\n\n1. **Sunglasses** - $678,994\n2. **Jeans** - $475,072\n3. **T-Shirt** - $320,150\n4. **Sneakers** - $289,033\n5. **Hat** - $201,487",
"timestamp": "2025-01-15T10:01:30.000Z",
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"omniChatUrl": "https://my-org.omni.co/chat/660e8400-e29b-41d4-a716-446655440001"
},
{
"role": "user",
"content": "Show me revenue by month for sunglasses",
"timestamp": "2025-01-15T10:03:00.000Z"
},
{
"role": "assistant",
"content": "### Sunglasses Revenue by Month\n\n- January: $52,430\n- February: $48,221\n- March: $61,992",
"timestamp": "2025-01-15T10:05:00.000Z",
"jobId": "550e8400-e29b-41d4-a716-446655440010",
"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 conversation
Conversation retrieved successfully
The unique identifier for this conversation.
"660e8400-e29b-41d4-a716-446655440001"
The user ID who created this conversation.
"990e8400-e29b-41d4-a716-446655440004"
The organization that owns this conversation.
"880e8400-e29b-41d4-a716-446655440003"
When the conversation was created.
"2025-01-15T10:00:00.000Z"
When the conversation was last modified.
"2025-01-15T10:01:30.000Z"
Ordered list of messages in the conversation, alternating between user and assistant turns.
Show child attributes
Was this page helpful?