# so.sprk.notification.getUnreadCount

> Published by [sprk.so](https://lexicon.garden/identity/did:plc:cveom2iroj3mt747sd4qqnr2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.notification.getUnreadCount)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.notification.getUnreadCount/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cveom2iroj3mt747sd4qqnr2/so.sprk.notification.getUnreadCount/examples)

## Definitions

### `so.sprk.notification.getUnreadCount`

**Type**: `query`

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

#### Parameters

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

#### Output

**Encoding**: `application/json`

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

## Raw Schema

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