Skip to main content
Thumbnail image operations return binary Blob | File data. Listing operations return generated thumbnail DTOs. Upload, selection, deletion, and regeneration operations require ADMIN. Komga normally generates posters during scans. A listing DTO records the thumbnail id, selected flag, type, mediaType, dimensions, and file size; the type is a server-provided string (commonly SIDECAR, EMBEDDED, or UPLOADED), so use selected rather than assuming a particular type is active.

Book thumbnails

Get the selected image, list available thumbnails, or fetch a specific thumbnail. Parameters are flat:
Upload a custom poster by passing file directly. Do not wrap it in a body or path object: The optional selected: true query parameter can make a newly uploaded poster active immediately. If you omit it, upload the poster first, then select it with the mark...ThumbnailSelected operation.
Select or delete a user-uploaded poster with flat bookId and thumbnailId parameters:
Both operations return HTTP 202 with an unknown body; a successful result has no thumbnail payload to inspect. Selection and deletion are asynchronous. After a 202, refetch the listing or selected image when the server-side task has completed instead of assuming the old image URL has changed immediately. The SDK does not cache thumbnail bytes or metadata; any browser/service-worker cache is application-owned. When you refresh a UI, revoke object URLs created for removed images. A URL created before selection can continue to display the old bytes even after the server has a new selected poster, so replace it after the refresh.

Series thumbnails

Series operations use seriesId:
Selection and deletion return HTTP 202 with an unknown body. Check result.error when the operation must be confirmed.

Collection thumbnails

Collection paths use the generated parameter name id, not collectionId:

Read-list thumbnails

Read-list paths also use id:

Build a thumbnail selector

List metadata first, then fetch only the thumbnails the user needs. Use the selected flag to render the current choice and refetch after selection because the selection call returns 202 without a thumbnail payload:

Regenerate book thumbnails

Regeneration is an asynchronous admin operation. Pass for_bigger_result_only only when you want to regenerate posters that can be improved:

Binary response handling

Every image getter returns Blob | File. Revoke object URLs when the image is no longer needed:

Next steps

Book content

Access book pages and reading positions.

Books

Learn about book management operations.

Administration

Review admin permissions and asynchronous tasks.