> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# markConversationRead

> Mark all messages in a space chat as read for the viewer



**mutation** `markConversationRead(input: MarkConversationReadInput!): MarkConversationReadPayload`

## Arguments

**`input`**: `MarkConversationReadInput!` (required)

Parameters for MarkConversationRead

## Returns

`MarkConversationReadPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`conversation`**: `PublicConversation`

---

**`errors`**: `[String!]!`

---

**`unreadCount`**: `Int`

Updated unread count (null when the viewer has no membership in the conversation)

## Examples

```graphql Mutation
mutation MarkConversationRead($input: MarkConversationReadInput!) {
  markConversationRead(input: $input) {
    clientMutationId
    conversation {
      bookmarkedAt
      id
      lastChatAt
      lastMessage {
        actorType
        artifact {
          __typename
        }
        assets {
          __typename
        }
        conversation {
          __typename
        }
        createdAt
        embeddedLink {
          __typename
        }
      }
      messages {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
      }
      title
    }
    errors
    unreadCount
  }
}
```

```json Variables
{
  "input": {
    "conversationId": "id"
  }
}
```

```json Response
{
  "data": {
    "markConversationRead": {
      "clientMutationId": "string",
      "conversation": {
        "bookmarkedAt": "value",
        "id": "id",
        "lastChatAt": "value",
        "lastMessage": {
          "actorType": "COHOST",
          "artifact": {
            "__typename": "Artifact"
          },
          "assets": [
            {
              "__typename": "Asset"
            }
          ],
          "conversation": {
            "__typename": "Space"
          },
          "createdAt": "value",
          "embeddedLink": {
            "__typename": "EmbeddedLink"
          }
        },
        "messages": {
          "edges": [
            {
              "__typename": "ChatMessageEdge"
            }
          ],
          "nodes": [
            {
              "__typename": "ChatMessage"
            }
          ],
          "pageInfo": {
            "__typename": "PageInfo"
          }
        },
        "title": "string"
      },
      "errors": [
        "string"
      ],
      "unreadCount": 1
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.