Removes the waiting, delayed, paused and active AI jobs of the case from every AI queue and reports how many were removed per queue and state. A job already running may still finish its current step. Requires owner or admin access to the case and an active plan (403 otherwise); not available to opposing counsel.
POST
/ai/cases/{caseId}/jobs/cancel
curl \
--request POST 'http://api.example.com/ai/cases/{caseId}/jobs/cancel' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"case": "65a1b2c3d4e5f6a7b8c9d0e2",
"cancelled": {
"ai-embedding-jobs": {
"waiting": 4,
"delayed": 0,
"paused": 0,
"active": 1
}
},
"totalCancelled": 5
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}