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 POST \
--url https://{instance}.omniapp.co/api/v1/ai/jobs/{jobId}/cancel \
--header 'Authorization: Bearer <token>'{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"state": "CANCELLED"
}Request cancellation of an AI job. This endpoint is idempotent — calling it on an already-cancelled or completed job returns success with the current state.
QUEUED jobs, cancellation is immediateEXECUTING jobs, the worker will stop after completing its current iterationDELIVERING state cannot be cancelled as they are already finalizing results. Only the job owner or organization admins can cancel jobs.curl --request POST \
--url https://{instance}.omniapp.co/api/v1/ai/jobs/{jobId}/cancel \
--header 'Authorization: Bearer <token>'{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"state": "CANCELLED"
}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 to cancel
Was this page helpful?