# tools.ozone.inbox.getUnreadCount

> Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.inbox.getUnreadCount)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.inbox.getUnreadCount/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.inbox.getUnreadCount/examples)

## Definitions

### `tools.ozone.inbox.getUnreadCount`

**Type**: `query`

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No | Account to preview. Only Ozone staff can read another account; this does not change its read state. |
| `section` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `unreadCounts` | `ref` → `#unreadCounts` | Yes |  |

### `tools.ozone.inbox.getUnreadCount#unreadCounts`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `accountStatus` | `integer` | No |  |
| `reports` | `integer` | No |  |
| `subjects` | `integer` | No |  |
| `total` | `integer` | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "unreadCounts": {
              "ref": "#unreadCounts",
              "type": "ref"
            }
          },
          "required": [
            "unreadCounts"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "Account to preview. Only Ozone staff can read another account; this does not change its read state.",
            "format": "did",
            "type": "string"
          },
          "section": {
            "knownValues": [
              "reports",
              "subjects",
              "accountStatus"
            ],
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "unreadCounts": {
      "properties": {
        "accountStatus": {
          "maximum": 1,
          "minimum": 0,
          "type": "integer"
        },
        "reports": {
          "minimum": 0,
          "type": "integer"
        },
        "subjects": {
          "minimum": 0,
          "type": "integer"
        },
        "total": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "total"
      ],
      "type": "object"
    }
  },
  "id": "tools.ozone.inbox.getUnreadCount",
  "lexicon": 1
}
```
