v4
latestOpenAPI 3.1.02026-08-01207318738.7 KBSubmit an AI job
Submit a new AI job for asynchronous execution. The AI will analyze the prompt, generate and execute queries against the specified model, and produce a summarized answer. Jobs are processed by a background worker and typically complete within 15–60 seconds. Use GET /api/v1/ai/jobs/{jobId} to poll for status, or configure a webhookUrl to receive a notification when the job completes. Optionally continue an existing conversation by providing a conversationId. The effective user's per-connector AI toggles (set in the chat + menu) govern which integration tools the agent may use.
Query parameters
Target user membership ID (for org-scoped API keys)
Target user membership ID (for org-scoped API keys)
Request body
Example request
{
"attachments": [
{
"data": "iVBORw0KGgoAAAANSUhEUgAA...",
"mimeType": "image/png",
"name": "legacy-dashboard-screenshot.png"
}
],
"branchId": "550e8400-e29b-41d4-a716-446655440000",
"conversationId": "660e8400-e29b-41d4-a716-446655440001",
"modelId": "770e8400-e29b-41d4-a716-446655440002",
"progressWebhookEnabled": true,
"prompt": "What are the top 5 products by revenue this quarter?",
"topicName": "order_items",
"webhookMetadata": {
"externalId": "task-123",
"slackChannel": "C0123456789"
},
"webhookUrl": "https://example.com/webhooks/omni"
}Response
Job created and queued for execution. Use the returned jobId to poll for status or retrieve results.
Example response
{
"conversationId": "660e8400-e29b-41d4-a716-446655440001",
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"omniChatUrl": "https://my-org.omni.co/chat/660e8400-e29b-41d4-a716-446655440001"
}