Rename or move a document
Renames a document, moves it, or both. Neither invalidates its generated audio.
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:write
id*string^[a-f0-9]{64}$application/json- body
name?string1 <= lengthfolderId?string|nullUpdated document.
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 PATCH 'https://reader.example/api/v1/documents/string' \ -H 'Content-Type: application/json' \ -d '{ "name": "paper.pdf"}'{ "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"}Search a document GET
Searches the same reading plan the reader uses, so each match is a sentence the reader can open at. A document never opened before is prepared first, as opening it would; that work is admitted against the user's compute limits, and this request does not wait for it.
Follow an upload GET
Streams progress for an upload as server-sent events. Pass the `operationId` of the upload as `opId`.