# IRPCWOPIOperationsPublic.GetContainerContent

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Server integration API](https://developer.m-files.com/APIs/gRPC-API/integration/index.md) > [WOPI operations (anonymous)](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperationsPublic/index.md)

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

Badges: `Server integration API / specialized` `internal: not for applications` `write` `no session`

Lists the subcontainers and files of the vault location (container) of a container access token.

- **Service:** [WOPI operations (anonymous)](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperationsPublic/index.md) `MFiles.IRPCWOPIOperationsPublic`
- **gRPC method:** `/MFiles.IRPCWOPIOperationsPublic/GetContainerContent`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-container-content`
- **Request:** [`GetContainerContentRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperationsPublic/GetContainerContent/index.md#request)
- **Response:** [`GetContainerContentResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperationsPublic/GetContainerContent/index.md#response)
- **Book and level:** Server integration API, specialized
- **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="remarks"></a>

## Remarks

**For M-Files components only.** The M-Files WOPI service calls it when an Office mobile app
browses the vault. Applications should not call it.
- Authorized by a container access token from
  [CreateContainerAccessToken](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperations/CreateContainerAccessToken/index.md). The
  content is listed with the permissions of the token's user.

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

## Request: GetContainerContentRequest

> 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 |
|---|---|---|
| `container_access_token` | `string` | The container access token. |

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

## Response: GetContainerContentResponse

> 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 |
|---|---|---|
| `wopi_container_content` | [`WOPIContainerContent`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WOPIContainerContent/index.md) | Receives the container content. |
| `wopi_container_content.containers[]` | repeated [`WOPIContainer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WOPIContainer/index.md) | Array of containers. |
| `wopi_container_content.containers[].container_access_token` | `string` | The container access token. |
| `wopi_container_content.containers[].container_name` | `string` | The container name. |
| `wopi_container_content.containers[].obj_id` | [`ObjID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjID/index.md) | Object ID. |
| `wopi_container_content.container_files[]` | repeated [`WOPIContainerFile`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WOPIContainerFile/index.md) | Array of container object files. |
| `wopi_container_content.container_files[].container_access_token` | `string` | The container access token. |
| `wopi_container_content.container_files[].obj_id` | [`ObjID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjID/index.md) | Object ID. |
| `wopi_container_content.container_files[].file` | [`File`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.File/index.md) | Object file. |

<a id="related"></a>

## Related methods

- [IRPCWOPIOperations.CreateContainerAccessToken](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCWOPIOperations/CreateContainerAccessToken/index.md): Creates, or returns the existing, container access token with which the Office mobile apps browse a vault location through the M-Files WOPI service.
