Stream a Document Session
Streams document bytes for a viewer using a short-lived session token sent in the Authorization header. A session token in the query string is rejected for ordinary downloads; the query form is reserved for the OnlyOffice server-to-server flow and requires a separate signed OnlyOffice JWT. This route does not accept S3 URLs or raw object keys.
Authorizations
Short-lived document session token sent in the Authorization header. Do not put this credential in a URL.
Query Parameters
OnlyOffice compatibility parameter. Do not use this query parameter for ordinary downloads; send the session token as Authorization: Bearer instead.
Response
Document stream
The response is of type file.