---
title: "Request import upload URL"
method: POST
path: "/import/request-upload-url"
tags: ["Document AI — Import & Migration"]
---

# Request import upload URL

`POST /import/request-upload-url`

## Request

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

Generate a signed upload URL for direct file upload (Cloudflare bypass).

## Request body

- object
  - `purpose` 'import/upload-source': Upload purpose. Default and only allowed value: import/upload-source (ZIP bulk import, max. 5 GB).

## Response `200`

Success

- object: Upload-URL generiert
  - `credits` object: Credits
    - `credits` object: Credits
      - `total_monthly` integer
      - `remaining_monthly` integer
    - `job` string: Job
  - `data` object: Response payload
    - `upload_url` string: URL for the file upload
    - `upload_token` string: Token for the upload
    - `expires_in` integer: Ablaufzeit in Sekunden
    - `max_size_bytes` integer: Maximum file size in bytes
    - `max_size_hr` string: Maximum file size (human-readable)
  - `processing_time` string: Processing duration in milliseconds
  - `status` string: Request status (ok/error)
  - `upload_url` string: Upload url
  - `upload_token` string: Upload token
  - `expires_in` string: Expires in
  - `max_size_bytes` string: Max size bytes
  - `max_size_hr` string: Max size hr

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