---
title: "Upload File"
method: POST
path: "/v1/upload"
tags: ["upload"]
---

# Upload File

`POST /v1/upload`

## Request

- Base URL: `https://api.smartpdf.ru`
- URL: `https://api.smartpdf.ru/v1/upload`
- Auth: HTTP bearer

## Headers

- `X-API-Key` string, nullable

## Response `201`

Successful Response

- UploadResponse
  - `file_id` string, required
  - `filename` string, required
  - `size` integer, required
  - `text_layer` boolean, nullable

## Other responses

- `422`: Validation Error

---

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