Cancel AI job
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.
- For
QUEUEDjobs, cancellation is immediate - For
EXECUTINGjobs, the worker will stop after completing its current iteration - Jobs in a
DELIVERINGstate cannot be cancelled as they are already finalizing results. Only the job owner or organization admins can cancel jobs.
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
The unique identifier of the AI job to cancel
Response
Cancellation request processed. The state field indicates the job's state after the attempt — CANCELLED if successful, or the current terminal state if the job had already completed.
The unique identifier for the cancelled job
The job's state after the cancellation attempt. CANCELLED if the cancellation succeeded. If the job was already in a terminal state (COMPLETE, FAILED, CANCELLED), the current state is returned unchanged.
CANCELLED, COMPLETE, DELIVERING, EXECUTING, FAILED, QUEUED 
