GET /wopi/files/(file_id)/contents
The GetFile operation retrieves a file from the host.
Parameters
| Name | Type | Description |
|---|
| file_id | string | The file ID. The ID must be URL-safe. |
Query parameters
| Name | Type | Description |
|---|
| access_token | string | The access token the host uses to determine whether the request is authorized. |
| Name | Type | Required | Description |
|---|
| X-WOPI-MaxExpectedSize | integer | Optional | Maximum expected size of the requested file. If not set, the host should use the maximum value of a 4-byte integer. If the requested file is larger than this value, the host must respond with 412 Precondition Failed. |
| Name | Type | Required | Description |
|---|
| X-WOPI-ItemVersion | string | Optional | File version. |
Response body
The response body must be the complete binary contents of the file.