# us.off-the-clock.admin.getPolicyStatus

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.getPolicyStatus)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.getPolicyStatus/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.getPolicyStatus/examples)

## Definitions

### `us.off-the-clock.admin.getPolicyStatus`

**Type**: `query`

Who has accepted a pair's current policy. Effective admins, the community identity and the pair's team. The counts and the pending list leave the community identity out.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `space` | `string` (tid) | Yes | A pair's TID. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `acceptedCount` | `integer` | Yes | Members of the content space whose newest acceptance names the current policy. |
| `memberCount` | `integer` | Yes |  |
| `pending` | `array` | Yes | Up to 100 members who have not accepted the current policy, by handle. |
| `policy` | `ref` → `us.off-the-clock.defs#policyView` | No |  |
| `versions` | `array` | Yes | Every policy record of the space, newest first: what removing the policy deletes. |

#### Errors

- **InvalidRequest**
- **NotAdmin**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Who has accepted a pair's current policy. Effective admins, the community identity and the pair's team. The counts and the pending list leave the community identity out.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotAdmin"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "acceptedCount": {
              "description": "Members of the content space whose newest acceptance names the current policy.",
              "minimum": 0,
              "type": "integer"
            },
            "memberCount": {
              "minimum": 0,
              "type": "integer"
            },
            "pending": {
              "description": "Up to 100 members who have not accepted the current policy, by handle.",
              "items": {
                "ref": "app.bsky.actor.defs#profileViewBasic",
                "type": "ref"
              },
              "maxLength": 100,
              "type": "array"
            },
            "policy": {
              "ref": "us.off-the-clock.defs#policyView",
              "type": "ref"
            },
            "versions": {
              "description": "Every policy record of the space, newest first: what removing the policy deletes.",
              "items": {
                "ref": "com.atproto.repo.strongRef",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "acceptedCount",
            "memberCount",
            "pending",
            "versions"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "space": {
            "description": "A pair's TID.",
            "format": "tid",
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.admin.getPolicyStatus",
  "lexicon": 1
}
```
