Command the reader
Sends the command to the open OpenReader tab. goto also works from the library, opening the book there. play also needs audio:generate, since playing can generate speech. A browser starts audio only after the user has interacted with the page, so play can report needs_user_gesture. With no view open, the outcome is not_open; for goto, webUrl still opens the reader there.
AuthorizationBearer <token>Authorization code with S256 PKCE. Discover issuer metadata at /.well-known/oauth-authorization-server/api/auth and resource metadata at /.well-known/oauth-protected-resource/api/v1. Request the /api/v1 resource explicitly. The same token endpoint also supports the advertised OAuth device grant.
Scope: reader:control
application/json- body
type*unknowndocumentId*stringThe document to open.
^[a-f0-9]{64}$at?stringA sentence key from search or the reader.
length <= 512page?integerA PDF page, used when at is absent or not in the plan.
1 <= value <= 999999What the open reader view did with the command.
application/json- response
outcome*string"done""sent""needs_user_gesture""not_found""failed""not_open"webUrl*|goto: opens the reader at the target.
curl -X POST 'https://reader.example/api/v1/reader/commands' \ -H 'Content-Type: application/json' \ -d '{ "type": "goto", "documentId": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08", "page": 12}'{ "outcome": "done", "webUrl": "string"}Look up an audiobook POST
Never starts or adopts work. A PDF that has not been parsed returns DOCUMENT_PREPARING when saved settings need its parsed language.
Get the open reader GET
A reader view shares its live state only while an app the user approved holds a reader scope. A book is shared when its own setting says so, else by the user's default; until the user has chosen that default, the first call asks them. A document the user keeps from connected apps never appears, live or saved. Live state is kept briefly while OpenReader stays open and is never stored in the database.