# app.zeens.getChatUnreadCount

> Published by [zeens.app](https://lexicon.garden/identity/did:plc:pwpuqwge6g7xrjmfbw73uycw)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getChatUnreadCount)
- [Documentation](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getChatUnreadCount/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getChatUnreadCount/examples)

## Definitions

### `app.zeens.getChatUnreadCount`

**Type**: `query`

Return the total number of unread chat messages for a viewer across all accepted conversations (for the nav badge).

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `viewer` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Return the total number of unread chat messages for a viewer across all accepted conversations (for the nav badge).",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "viewer": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "viewer"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.zeens.getChatUnreadCount",
  "lexicon": 1
}
```
