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

idstringRequired
importIdstringRequired

Response

The (possibly already-terminal) import job row.

idstring
kb_idstring
kindenum
statusenum

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_countinteger
completed_countinteger
failed_countinteger
paramsmap from strings to any

JSON blob whose shape depends on kind — typically url, max_pages, max_depth. The console reads it for display only.

created_by_uidstring
created_atdatetime
updated_atdatetime
started_atdatetime or null
finished_atdatetime or null
errorstring
upstream_job_idstring

Errors

401
Unauthorized Error
404
Not Found Error