---
title: "Given a valid path, will invoke either a Scan Series or Scan Library. If the folder does not exist within Kavita, the request will be ignored"
method: POST
path: "/api/Library/scan-folder"
tags: ["Library"]
---

# Given a valid path, will invoke either a Scan Series or Scan Library. If the folder does not exist within Kavita, the request will be ignored

`POST /api/Library/scan-folder`

## Request body

- ScanFolderDto
  - `apiKey` string, nullable
  - `folderPath` string, nullable
  - `abortOnNoSeriesMatch` boolean

## Response `200`

OK

---

[API](https://skmtc.net/kareadita/apis/kavita.md) · [All operations](https://skmtc.net/kareadita/apis/kavita/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kareadita/kavita/versions/4278761d76d7/schema)
