{ client } in the second argument.
Get book pages
Retrieve metadata about every page in a book:Get a specific page
Get page image
getBookPageByNumber returns the page image as a Blob | File. Its optional query parameters (convert, zero_based, and contentNegotiation) are also flat:
Get raw page
getBookPageRawByNumber has a different generated response shape from the rendered page endpoint: its result.data is a string, not a Blob | File. Use it when your client needs the server’s raw representation; do not pass it to URL.createObjectURL.
Get page thumbnail
Reading progress and EPUB positions
getBookPositions returns an R2Positions object (positions plus total) for EPUB locations. This is separate from the page-based ReadProgressDto used by comic pages.
updateBookProgression accepts the complete r2Progression document (device, locator, and modified timestamp) and returns 204 No Content. It is intended for the EPUB reader’s Readium/OPDS progression, not for a page number:
markBookReadProgress operation accepts { page } or { completed: true }; deleteBookReadProgress resets the book to unread. Both are accepted/204 operations and return no updated book.
Book thumbnails
Get book thumbnail
List available thumbnails
Get a specific thumbnail
Upload a custom thumbnail
addUserUploadedBookThumbnail takes the file as the flat file parameter and accepts selected as a query parameter:
Delete a custom thumbnail
The delete operation returns an accepted response without a data payload:Mark a thumbnail as selected
WebPub manifests
The manifest operations return WebPub publication data rather than binary image data:EPUB resources
getBookEpubResource returns the resource body as a string:
Response and cleanup semantics
Rendered pages, page thumbnails, book thumbnails, and thumbnail-by-ID responses areBlob | File. Create an object URL only for those binary responses and revoke it when the image is removed from the UI. WebPub manifest operations return a WpPublicationDto, while getBookEpubResource and raw-page operations are generated as string responses. A 404 commonly means the requested page/resource does not exist; a 400 can indicate an invalid page number, conversion, or resource path.
Common workflows
Build a simple page viewer
Create a thumbnail gallery
Display a WebPub reader
Next steps
Books
Learn about book management operations.
Thumbnails
Deep dive into thumbnail management across all content types.