Cancel Import Job
Cancel a non-terminal import job. Idempotent on terminal jobs (completed / failed / cancelled) — the cancel call returns the unchanged row.
Authentication
AuthorizationBearer
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Path parameters
id
importId
Response
The (possibly already-terminal) import job row.
id
kb_id
kind
status
pending is the brief window between insert and the worker
picking up; running is the bulk of the job’s life;
completed / failed / cancelled are terminal.
requested_count
completed_count
failed_count
params
JSON blob whose shape depends on kind — typically url,
max_pages, max_depth. The console reads it for display
only.
created_by_uid
created_at
updated_at
started_at
finished_at
error
upstream_job_id
Errors
401
Unauthorized Error
404
Not Found Error