---
title: "Create presigned upload URLs for an assisted import package"
method: POST
path: "/assisted-imports/uploads"
tags: ["Imports"]
---

# Create presigned upload URLs for an assisted import package

`POST /assisted-imports/uploads`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/assisted-imports/uploads`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Registers each file as a temporary import artifact and returns content-length-bound presigned PUT URLs. PUT every file, then POST /assisted-imports with the returned uploadBatchId. Accepted types are CSV for Chart of Accounts and Journal, CSV or PDF for the reports, and CSV, XLSX, or ZIP for bank/card exports.

## Request body

- object
  - `companyOrganizationId` string, uuid
  - `importMethod` 'quickbooks' | 'bank_csv' | 'files', required
  - `files` object[], required
    - `role` 'chart_of_accounts' | 'journal' | 'profit_and_loss' | 'balance_sheet' | 'bank_activity' | 'source_file', required
    - `fileName` string, required
    - `fileSize` integer, required
    - `mimeType` string

## Response `200`

Presigned upload URLs

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
