---
title: "Scan import source"
method: POST
path: "/import/import-scan"
tags: ["Document AI — Import & Migration"]
---

# Scan import source

`POST /import/import-scan`

## Request

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

Scans the import source and lists all found files. Returns count, sizes, and type breakdown.

## Request body

- object
  - `job_id` integer, required: ID of the import job for which the source is scanned.

## Response `200`

Success

- object: Import-Scan
  - `status` 'success' | 'error': Request status (ok/error)
  - `message` string: Status message
  - `files` object[]: List of files
    - `filename` string: Filename
    - `size` integer: Size
    - `mime_type` string: Mime type
  - `total_size` integer: Total size
  - `processing_time` string: Request processing time (e.g. "123.45ms")
  - `data` string: Data
  - `job_id` string: Job id
  - `total_files_found` string: Total files found
  - `total_size_bytes` string: Total size bytes
  - `total_size_human` string: Total size human

## 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)
