Skip to main content
Hand the file's bytes to the online editor

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Headers

X-WOPI-MaxExpectedSize
string

An integer specifying the upper bound of the expected size of the file being requested. Optional. The host should use the maximum value of a 4-byte integer if this value is not set in the request. A file larger than this is refused rather than sent.

Path Parameters

file_id
string
required

Hash of the file whose bytes are wanted.

Query Parameters

access_token
string

Token the call is authorized with. Either a token of an account of the platform or a share token - whichever it turns out to be decides whose access the file is checked against.

Response

Returns the file's bytes.