API Reference
Leelaa Reader exposes stable APIs for authentication, license status, library browsing, categories, playback, progress, favorites, and bookmarks.
OpenAPI
Administrative operations such as importing, deleting, scanning, system configuration, log maintenance, and AI maintenance are not part of the stable third-party contract.
Base URL
text
http://{host}:8686/api/v1Same-origin deployments may use /api/v1, while fnOS gateway deployments may use /app/leelaa-reader/api/v1.
Minimum flow
POST /auth/loginGET /license/statusGET /booksorGET /books/searchGET /books/{bookId}andGET /books/{bookId}/chaptersGET /books/{bookId}/download-manifestGET /chapters/{chapterId}/play?raw=1- Read and update
/auth/reading-progress/{bookId}
Authentication
http
Authorization: Bearer {token}For players that cannot attach headers:
text
/api/v1/chapters/{chapterId}/play?raw=1&access_token={token}Do not persist user passwords. Re-authenticate after 401. Stop playback and background synchronization after 403 license_required.
Playback rules
- Use the complete server-provided playback manifest;
- Use
chapterIdas the persistent chapter identifier; - Never persist list indexes as progress or bookmark identifiers;
- Do not keep only a partial queue around the current chapter;
- Preserve the server-provided order;
- The server owns progress merge and conflict decisions;
- Do not overwrite valid progress with position
0during restoration.
