# IRPCSharedLinksPublic.GetWOPIFileInfo

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Shared links (anonymous access)](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/GetWOPIFileInfo/

Badges: `Vault API / standard` `write` `no session`

Gets information about the file of a link for Office for the web (WOPI) operations. Used by
M-Files clients; applications rarely call it.

- **Service:** [Shared links (anonymous access)](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/index.md) `MFiles.IRPCSharedLinksPublic`
- **gRPC method:** `/MFiles.IRPCSharedLinksPublic/GetWOPIFileInfo`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-wopifile-info`
- **Request:** [`GetWOPIFileInfoRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/GetWOPIFileInfo/index.md#request)
- **Response:** [`GetWOPIFileInfoResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/GetWOPIFileInfo/index.md#response)
- **Book and level:** Vault API, standard
- **Kind:** write
- **Session:** Not needed: the call can be made before logging in.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="request"></a>

## Request: GetWOPIFileInfoRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `vault` | `string` | The vault GUID. |
| `access_key` | `string` | The access key of the link. |

<a id="response"></a>

## Response: GetWOPIFileInfoResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `result` | [`WOPIFileInfo`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WOPIFileInfo/index.md) | The file's title, extension, size, the account name of the link's creator, and the object and file version. |
| `result.title` | `string` | The title of the file. |
| `result.extension` | `string` | File extension, not including the dot (e.g. "doc"). |
| `result.created_by_user` | `string` | The creator of this shared Link. |
| `result.logical_size` | `int64` | The logical size of the file in bytes. |
| `result.change_time` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | The time in UTC the file was last written to or its attributes were changed. |
| `result.obj_ver` | [`ObjVer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjVer/index.md) | The object version referenced by the shared link. |
| `result.obj_ver.obj_id` | [`ObjID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjID/index.md) | The object. |
| `result.obj_ver.version` | [`ObjVerVersion`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjVerVersion/index.md) | The version. Usually `OBJ_VER_VERSION_TYPE_SPECIFIC` with `internal_version`. |
| `result.file_ver` | [`FileVer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FileVer/index.md) | The file version referenced by the shared link. |
| `result.file_ver.file_id` | [`FileID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FileID/index.md) | The file. |
| `result.file_ver.type` | [`FileVerType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.FileVerType/index.md) | `FILE_VER_TYPE_SPECIFIC` for a file version number. Values: `FILE_VER_TYPE_UNINITIALIZED` (0), `FILE_VER_TYPE_LATEST` (1), `FILE_VER_TYPE_ANY` (2), `FILE_VER_TYPE_SPECIFIC` (3). |
| `result.file_ver.internal_version` | `int32` | The file version number. |
| `result.file_ver.external_repository_version` | `string` | Used only for files in external repositories. Leave empty. |
| `result.file_ver.external_repository_sort_key` | `int64` | Used only for files in external repositories. Leave 0. |
