meta { name: Scan Ebooks type: http seq: 1 } post { url: {{base_url}}/api/scanner/scan body: json auth: inherit } settings { encodeUrl: true timeout: 0 } docs { ## Scan Ebooks Scans the user's configured ebook folders for ebooks and adds them to the database. **Method:** POST **Endpoint:** /api/scanner/scan **Authentication:** Required **Request Body:** - `folder_paths` (array of strings, optional): Array of folder paths to scan. If not provided, uses user's saved folders from Add Ebook Folder. **Response:** - `message` (string): Success message **Status Codes:** - 200: Success - 400: Bad Request - 401: Unauthorized **Usage:** - Without body: Scans all folders added via "Add Ebook Folder" - With folder_paths: Scans the specified paths directly (useful for testing) }