# IRPCConversationOperations.GetConversationById

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) > [Conversations](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCConversationOperations/index.md)

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

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

Gets one of the caller's conversations by ID.

- **Service:** [Conversations](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCConversationOperations/index.md) `MFiles.IRPCConversationOperations`
- **gRPC method:** `/MFiles.IRPCConversationOperations/GetConversationById`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-conversation-by-id`
- **Request:** [`GetConversationByIdRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCConversationOperations/GetConversationById/index.md#request)
- **Response:** [`GetConversationByIdResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCConversationOperations/GetConversationById/index.md#response)
- **Book and level:** Vault API, standard
- **Kind:** write
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- A conversation of another user, or an ID that does not exist, fails with "Access is
  denied.". ID 0 fails with "The parameter is incorrect.".

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

## Request: GetConversationByIdRequest

> 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 |
|---|---|---|
| `id` | `uint32` | The ID of the conversation. |

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

## Response: GetConversationByIdResponse

> 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 |
|---|---|---|
| `updated_conversation` | [`Conversation`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Conversation/index.md) | The requested conversation of the caller. |
| `updated_conversation.id` | `uint32` | The ID of the conversation, assigned by the server. |
| `updated_conversation.user_id` | `uint32` | The ID of the user account that owns the conversation. Set by the server. |
| `updated_conversation.type` | [`ConversationType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ConversationType/index.md) | The kind of conversation. Set when the conversation is created. Values: `CONVERSATION_TYPE_UNDEFINED` (0), `CONVERSATION_TYPE_AINO` (1). |
| `updated_conversation.title` | `string` | The title of the conversation, as plain text. |
| `updated_conversation.sort_key` | `uint32` | Orders conversations; newer conversations have larger values. Used for paging. |
| `updated_conversation.created` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | When the conversation was created (UTC). |
| `updated_conversation.modified` | [`google.protobuf.Timestamp`](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp) | When the conversation was created or last renamed (UTC). |
