---
title: "Downloads a CBL file from a URL and saves it to disk without importing."
method: POST
path: "/api/Cbl/upload-cbl-file"
tags: ["Cbl"]
---

# Downloads a CBL file from a URL and saves it to disk without importing.

`POST /api/Cbl/upload-cbl-file`

## Request

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

## Request body

- UploadUrlDto
  - `url` string, required

## 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-08-19** `8f6bc4f38f06`: 3 warning
  - removed the request property `isInternalUrl` (media type: application/json)
  - removed the request property `isInternalUrl` (media type: text/json)
  - removed the request property `isInternalUrl` (media type: application/*+json)
- **2026-05-19** `f23d18415096`: 3 info
  - added the new optional request property `isInternalUrl` (media type: application/json)
  - added the new optional request property `isInternalUrl` (media type: text/json)
  - added the new optional request property `isInternalUrl` (media type: application/*+json)
- **2026-03-22** `777fe1636b50`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kareadita/apis/kavita/changes/api/Cbl/upload-cbl-file/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)
