# com.getorbyt.notification.getUnreadCount

> Published by [getorbyt.com](https://lexicon.garden/identity/did:plc:2xrqztnmzlckb3xfuuukupso)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.notification.getUnreadCount)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.notification.getUnreadCount/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2xrqztnmzlckb3xfuuukupso/com.getorbyt.notification.getUnreadCount/examples)

## Definitions

### `com.getorbyt.notification.getUnreadCount`

**Type**: `query`

How many Orbyt activity items are newer than the viewer's last updateSeen. Requires service auth.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `reasons` | `array` | No | Only count these reasons. Absent means all. |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **AuthenticationRequired**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "How many Orbyt activity items are newer than the viewer's last updateSeen. Requires service auth.",
      "errors": [
        {
          "name": "AuthenticationRequired"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "reasons": {
            "description": "Only count these reasons. Absent means all.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.getorbyt.notification.getUnreadCount",
  "lexicon": 1
}
```
