---
title: "Cancel import job"
method: POST
path: "/import/import-cancel"
tags: ["Document AI — Import & Migration"]
---

# Cancel import job

`POST /import/import-cancel`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/import/import-cancel`
- Auth: HTTP bearer

Cancel a running import job. Already imported files remain; queued work is stopped.

## Request body

- object
  - `job_id` integer, required: ID of the import job to cancel.

## Response `200`

Success

- object: Import cancelled
  - `status` 'success' | 'error': Request status (ok/error)
  - `message` string: Status message
  - `import_id` string: Import id
  - `processing_time` string: Request processing time (e.g. "123.45ms")
  - `data` string: Data
  - `job_id` string: Job id
  - `files_skipped` string: Files skipped
  - `retried_files` string: Retried files
  - `deleted_files` string: Deleted files

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
