Get a document
Returns metadata and whether the document is ready to read. This read starts no work and does not change recent activity.
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}$Document; this read does not open the reader or create playback plans.
application/json- response
id*string^[a-f0-9]{64}$name*stringsize*integerlastModified*numbertype*string"pdf""epub""docx""html"scope?"user""user"folderId?stringrecentlyOpenedAt?numbercontentVersion?stringauthor?stringlanguage?stringreadingProgress?status*stringnot_started: a PDF has not been parsed yet and reading or generating will start it. unknown: the compute worker could not be reached; retry.
"not_started""processing""ready""failed""unknown"operationId*string|nullerror*string|nullwebUrl*stringurifileUrl*stringcurl -X GET 'https://reader.example/api/v1/documents/string'{ "id": "string", "name": "string", "size": 0, "lastModified": 0, "type": "pdf", "scope": "user", "folderId": "string", "recentlyOpenedAt": 0, "contentVersion": "string", "author": "string", "language": "string", "readingProgress": { "fraction": 0, "updatedAtMs": 0 }, "status": "not_started", "operationId": "string", "error": "string", "webUrl": "http://example.com", "fileUrl": "string"}Get the file GET
Downloads the file OpenReader reads from. In presigned mode the response redirects to a short-lived storage URL.
List chapters GET
Uses the reader reading plan and saved settings. Preparing a new plan uses compute limits and returns immediately while work is pending. Audiobook chapter boundaries are unchanged and can differ from these contents.