Use the data jobs API to list and filter jobs, clone a job, update names and instructions, and cancel in-progress alignment runs.
List data jobs
Endpoint: GET /v1/flow/data-jobs
Returns a paginated list of all data jobs for the authenticated user.
Filter and sort
Get job detail
Endpoint: GET /v1/flow/data-jobs/{id}
Returns the full job detail including ingestion jobs, file records, timeline events, and alignment status. See Monitor ingestion for a field-by-field reference.
Clone a data job
Endpoint: POST /v1/flow/data-jobs/{id}/clone
Create a new, editable data job pre-populated from an existing one. The clone copies the source job’s configuration and starts as a fresh job that you can adjust before starting alignment. Give the clone a new name, or omit name to reuse the source job’s name.
Cloning returns the full job detail, the same shape as Get job detail.
Update job attributes
Endpoint: PATCH /v1/flow/data-jobs/{id}
Update the job name, instructions, system prompt, or vector database ID without recreating the job.
Editable fields:
Once alignment starts, job inputs are locked. Attempting to update a running job returns 409 Conflict.
Cancel a job
Endpoint: POST /v1/flow/data-jobs/{id}/cancel
Cancels the alignment run associated with the data job. Only applies when alignment is in pending, queued, or running state.
Attempting to cancel a job whose alignment is not in a cancellable state returns 304 Not Modified.