Look up an audiobook
Never starts or adopts work. A PDF that has not been parsed returns DOCUMENT_PREPARING when saved settings need its parsed language.
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: documents:read
id*string^[a-f0-9]{64}$application/json- body
provider?stringShared provider slug. Omit to use the saved provider.
length <= 200model?stringModel ID. Omit to use the saved model, or the default model of the named provider.
length <= 512voice?stringVoice ID within that provider and model. Omit to use the saved voice, or the first voice of the named provider. A named voice must be one the provider lists.
modelSpeed?numberSpeaking rate the model generates at, for models that support one. Omit to use the saved voice speed. Unlike speed, it changes the generated audio.
0.5 <= value <= 3format?string"mp3""mp3""m4b"speed?number0.5 <= value <= 31chapter?|Zero-based index. A chapter builds already-settled audio; it does not start generation.
0 <= valueretrySkipped?booleanRetry skipped segments of a whole book.
includeProgress?booleantruesettings?Advanced explicit settings used by the web app. Omit to use saved preferences.
planning?planObjectKey?stringCurrent state; no audiobook request is created.
application/json- response
id*stringdocumentId*string^[a-f0-9]{64}$status*stringcancelled: someone stopped the request. A POST with the same settings resumes it from the cached audio.
"idle""preparing""queued""generating""complete""stopped""usage_limited""interrupted""failed""building""waiting""ready""cancelled"progress*|0 <= value <= 1provider*stringSpeech provider, as a request names it.
model*stringvoice*stringmodelSpeed*numberThe rate the model speaks at; speed is the finished file's playback speed.
requestedAt*|When it was last requested or cancelled; null when nobody has asked for it.
date-timeformat*string"mp3""m4b"speed*numberchapter*integer|nulldownloadUrl*string|nullfilename*string|nullwebUrl*stringuriwebDownloadUrl*|uriretryAfterMs*number|nullgeneration*segments*|nullartifact*curl -X POST 'https://reader.example/api/v1/documents/string/audiobooks/lookup' \ -H 'Content-Type: application/json' \ -d '{ "format": "mp3", "speed": 1}'{ "id": "string", "documentId": "string", "status": "idle", "progress": 0, "provider": "string", "model": "string", "voice": "string", "modelSpeed": 0, "requestedAt": "2019-08-24T14:15:22Z", "format": "mp3", "speed": 0, "chapter": 0, "downloadUrl": "string", "filename": "string", "webUrl": "http://example.com", "webDownloadUrl": "http://example.com", "retryAfterMs": 0, "generation": { "state": "idle", "operationId": "string", "issue": { "code": "string", "message": "string" } }, "segments": { "plannedSegments": 0, "completedSegments": 0, "skippedSegments": 0, "lastSkipIssue": { "code": "string", "message": "string" }, "chapters": [ { "index": 0, "title": "string", "spineHref": "string", "page": 0, "plannedSegments": 0, "completedSegments": 0, "skippedSegments": 0, "generatingSegments": 0, "durationMs": 0 } ] }, "artifact": { "state": "none", "operationId": "string", "issue": { "code": "string", "message": "string" } }}List audiobooks GET
Returns the audiobooks requested for a document. Listing never starts or resumes one.
Command the reader POST
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.