# app.didpic.chat.markRead

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.chat.markRead)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.chat.markRead/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.chat.markRead/examples)

## Definitions

### `app.didpic.chat.markRead`

**Type**: `procedure`

Mark a conversation as read by the caller up to its most recent message.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `conversationId` | `string` | Yes |  |
| `token` | `string` | No | Caller's push token. When supplied and bound to the viewer, the response carries the post-update device badge. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `badge` | `integer` | No | Device-wide unread sum (notifications + chat) across every DID bound to the supplied token. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Mark a conversation as read by the caller up to its most recent message.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "conversationId": {
              "type": "string"
            },
            "token": {
              "description": "Caller's push token. When supplied and bound to the viewer, the response carries the post-update device badge.",
              "type": "string"
            }
          },
          "required": [
            "conversationId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "badge": {
              "description": "Device-wide unread sum (notifications + chat) across every DID bound to the supplied token.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.didpic.chat.markRead",
  "lexicon": 1
}
```
