Prepare an upload
Reserves an upload and returns where to send the bytes. Pending uploads expire after 24 hours.
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
application/json- body
name*string1 <= lengthsize*integer1 <= valuelastModified?integer1 <= valueauthor?stringlanguage?stringTransfer descriptor. PUT bytes to url using every returned header, then POST /documents.
application/json- response
id*stringuuidurl*stringheaders*expiresAt*numbercurl -X POST 'https://reader.example/api/v1/uploads' \ -H 'Content-Type: application/json' \ -d '{ "name": "paper.pdf", "size": 482133}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "string", "headers": { "property1": "string", "property2": "string" }, "expiresAt": 0}Get an upload GET
Returns the state of an upload. For a converted DOCX, this read registers the resulting PDF and returns it as `document`.
Send the file PUT
Use the prepared descriptor instead of constructing this URL. The body must match its declared byte length. Presigned mode rejects proxy transfers. A URL prepared by the MCP docs upload command carries owner, expires and signature query parameters in place of a token, valid for that upload only.