---
title: "Prepare a direct Files upload"
method: POST
path: "/tally/files/uploads"
tags: ["Tally Files"]
---

# Prepare a direct Files upload

`POST /tally/files/uploads`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/tally/files/uploads`
- Auth: HTTP bearer

Creates a short-lived upload reservation for the selected firm or company Files folder. Duplicate names are retained with a unique suffix.

## Request body

- object
  - `companyOrganizationId` string, uuid, nullable
  - `folderPath` string, nullable
  - `fileName` string, required
  - `fileSize` integer, required
  - `mimeType` string, required

## Response `201`

Upload reservation and signed destination

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