Every endpoint lives under /api and accepts either a JWT (from login) or a tome_* bearer token. See API tokens for how to create one. All request/response bodies are JSON unless noted.
UpdatedReading time—
Auth
Method
Path
Description
POST
/api/auth/login
Authenticate, returns a JWT that stays valid until signed out. Each call is a new sign-in listed under Settings > Connected devices, so scripts should use an API token instead
POST
/api/auth/logout
End the calling sign-in
GET
/api/auth/me
Current user profile, including week_start (monday / sunday)
PUT
/api/auth/me
Update username / email / week_start
PUT
/api/auth/me/password
Change password
GET
/api/auth/me/stats
Reading stats for current user
GET
/api/auth/me/backup
Export user data as JSON
Books
Method
Path
Description
GET
/api/books
List books (supports ?q=, ?series=, ?author=, ?library_id=, ?per_page=)
GET
/api/books/{id}
Book detail with files, tags, libraries
PUT
/api/books/{id}
Update metadata fields
DELETE
/api/books/{id}
Delete a book and its files
POST
/api/books/upload
Upload a file (multipart form, file + optional book_type_id)
POST
/api/books/scan
Scan TOME_LIBRARY_DIR for new files
POST
/api/books/import
Import from TOME_INCOMING_DIR
POST
/api/books/ingest
Programmatic ingest (used by Scribe)
POST
/api/books/check-hashes
Check content hashes for deduplication
Metadata
Method
Path
Description
GET
/api/books/{id}/fetch-metadata
Fetch candidates from Hardcover / Google / OpenLibrary
POST
/api/books/{id}/apply-metadata
Apply selected metadata fields from a candidate
PUT
/api/books/bulk-metadata
Bulk-update metadata on multiple books
POST
/api/books/bulk-fetch-candidates
Fetch metadata candidates for up to 100 books
POST
/api/books/bulk-fetch-metadata
Auto-fill empty fields from best match
Covers
Method
Path
Description
GET
/api/books/{id}/cover
Serve cover image
GET
/api/books/{id}/cover-candidates
Search for cover images (?q=)
POST
/api/books/{id}/cover
Set cover from URL or file upload
Downloads & reading
Method
Path
Description
GET
/api/books/{id}/download/{file_id}
Download a book file (with embedded metadata)
POST
/api/downloads
Bulk download as streaming ZIP
GET
/api/books/{id}/read.epub
Stream EPUB for web reader
GET
/api/books/{id}/read.cbz
Stream CBZ for comic reader
GET
/api/books/{id}/read.pdf
Stream PDF for viewer
Reading status
Method
Path
Description
GET
/api/books/{id}/status
Get reading status for current user
PUT
/api/books/{id}/status
Set status (unread / reading / read), progress, CFI
The reading goals of the current user. Every endpoint that computes takes the reader's zone as ?tz= (an IANA name such as Europe/Vienna); the older ?tz_offset= (JS getTimezoneOffset, in minutes) is still accepted and used when tz is missing or unknown.
Method
Path
Description
GET
/api/goals
All goals with their current period: {goals, week_start, today}
POST
/api/goals
Create a goal (body: kind, target, optional book_type_id; finish-by: series or book_id, and due_date). 409 if the same goal exists
PUT
/api/goals/{id}
Change the target, or a finish-by goal's due_date. Past periods keep the target they had
DELETE
/api/goals/{id}
Delete a goal; it stays restorable for 30 minutes
POST
/api/goals/{id}/restore
Undo a delete, history included
GET
/api/goals/{id}/history
Past periods with value, target and met / missed (?periods=, default 12, years 5)
GET
/api/goals/kinds
The kinds a goal can have, with label, unit, presets and the reader's goals of each
GET
/api/goals/suggestions
Targets suggested from the reader's own reading (?kind=, all count kinds when omitted)
GET
/api/goals/finish-preview
What finishing a series or book by a day takes, before a goal is set (?due= and ?series= or ?book_id=)
Kinds are books_per_year, books_per_month, minutes_per_day, minutes_per_week, pages_per_day, pages_per_week, days_per_week and finish_by. Fields of a goal worth knowing:
name — the display name ("Books in 2026", "Reading days a week"); name_key and name_params to translate it yourself.
current, target, unit, pct, to_go — progress in the period.
status — ahead, on_pace, behind or reached for weeks, months and years; open or reached for day goals; on_pace, behind, open, completed or expired for finish-by.
diff — how many ahead (positive) or behind (negative) of an even pace; expected is where the pace is today, projection the course for the period's end. All null where they don't apply.
period_start, period_end (local dates, inclusive), days_left; day and reading-days goals add week, one mark per day.
Finish-by goals add due_date, target_series or target_book_id, and finish with the volumes and time left.