Skip to main content
POST
/
v1
/
ai
/
jobs
Create AI job
curl --request POST \
  --url https://{instance}.omniapp.co/api/v1/ai/jobs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "modelId": "123e4567-e89b-12d3-a456-426614174000",
  "prompt": "Analyze sales trends by region for the past year"
}
'
{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "conversationId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "omniChatUrl": "https://blobsrus.omni.co/chat/b2c3d4e5-f6a7-8901-bcde-f12345678901"
}

Authorizations

Authorization
string
header
required

Can be either an Organization API Key or Personal Access Token (PAT).

Include in the Authorization header as: Bearer YOUR_TOKEN

Query Parameters

userId
string<uuid>

Requires an Organization API key. The ID of the user to run the query as.

Personal Access Tokens (PATs) cannot use this parameter to act on behalf of other users.

Body

application/json
modelId
string<uuid>
required

The ID of the model to run the AI job against

prompt
string
required

Natural language instruction describing the desired task

conversationId
string<uuid>

Optional conversation ID to continue an existing conversation

branchId
string<uuid>

Optional branch ID for the model. Must be a branch of the shared model specified by modelId. Use this to query against in-progress model changes.

topicName
string

Topic name to scope query generation. If not provided, the AI will automatically select the best topic.

webhookUrl
string<uri>

An optional webhook URL for job completion notifications

webhookSigningSecret
string

An HMAC-SHA256 secret for signing webhook payloads

webhookMetadata
object

Opaque metadata passed back unchanged in webhook payloads

Response

AI job created successfully

jobId
string<uuid>

The unique identifier for the created job

conversationId
string<uuid>

The conversation ID associated with this job

omniChatUrl
string

URL to view this conversation in the Omni chat interface. Opens the chat session where the job actions and results are visible.