# pub.chive.governance.getPendingCount

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.getPendingCount)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.getPendingCount/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.getPendingCount/examples)

## Definitions

### `pub.chive.governance.getPendingCount`

**Type**: `query`

Get the count of pending governance proposals, used for notification badges

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `kind` | `string` | No | Filter by node kind |
| `subkind` | `string` | No | Filter by subkind (field, institution, etc.) |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `count` | `integer` | Yes | Number of pending proposals |

## Raw Schema

```json
{
  "id": "pub.chive.governance.getPendingCount",
  "defs": {
    "main": {
      "type": "query",
      "errors": [],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "count"
          ],
          "properties": {
            "count": {
              "type": "integer",
              "minimum": 0,
              "description": "Number of pending proposals"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "kind": {
            "type": "string",
            "description": "Filter by node kind",
            "knownValues": [
              "type",
              "object"
            ]
          },
          "subkind": {
            "type": "string",
            "description": "Filter by subkind (field, institution, etc.)"
          }
        }
      },
      "description": "Get the count of pending governance proposals, used for notification badges"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
