# town.delve.notification.getUnreadCount

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.notification.getUnreadCount)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.notification.getUnreadCount/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.notification.getUnreadCount/examples)

## Definitions

### `town.delve.notification.getUnreadCount`

**Type**: `query`

Count the number of unread notifications for the requesting account. Requires auth.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `priority` | `boolean` | No |  |
| `seenAt` | `string` (datetime) | No |  |

#### Output

**Encoding**: `application/json`

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

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Count the number of unread notifications for the requesting account. Requires auth.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "type": "integer"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "priority": {
            "type": "boolean"
          },
          "seenAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "town.delve.notification.getUnreadCount",
  "lexicon": 1
}
```
