---
title: "Saves an uploaded CBL file to disk without importing. Returns the saved file info."
method: POST
path: "/api/Cbl/file-import"
tags: ["Cbl"]
---

# Saves an uploaded CBL file to disk without importing. Returns the saved file info.

`POST /api/Cbl/file-import`

## Request

- Base URL: `http://localhost:5000`
- URL: `http://localhost:5000/api/Cbl/file-import`
- Auth: API key in header `x-api-key`

## Request body `multipart/form-data`

- object
  - `cblFile` string, binary

## Response `200`

OK

- CblSavedFileDto
  - `name` string, nullable
  - `fileName` string, nullable
  - `provider` 0 | 1 | 2: Members: - `0` — File (None) - `1` — File - `2` — Url
  - `repoPath` string, nullable
  - `downloadUrl` string, nullable
  - `sha` string, nullable

## Changes

- **2026-03-22** `777fe1636b50`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Cbl/file-import/post.md)

---

[API](https://skmtc.dev/kareadita/apis/kavita.md) - [All operations](https://skmtc.dev/kareadita/apis/kavita/llms.txt) - [OpenAPI document](https://skmtc.dev/kareadita/apis/kavita/revisions/d266465eeb67?raw)
