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

> 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.

- Kind: query
- Authority: admin.off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.getPolicyStatus)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.getPolicyStatus/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.getPolicyStatus/analytics)

## Query (`us.off-the-clock.admin.getPolicyStatus`)

Type: query · GET

### Parameters (query string)

- `space` (string · tid, required): A pair's TID.

### Output (application/json)

- `acceptedCount` (integer, required): Members of the content space whose newest acceptance names the current policy.
  - Constraints: minimum: 0
- `memberCount` (integer, required)
  - Constraints: minimum: 0
- `pending` (array, required): Up to 100 members who have not accepted the current policy, by handle.
  - Constraints: maxLength: 100
  - `items` (ref)
    - Reference: `app.bsky.actor.defs#profileViewBasic`
- `policy` (ref)
  - Reference: `us.off-the-clock.defs#policyView`
- `versions` (array, required): Every policy record of the space, newest first: what removing the policy deletes.
  - `items` (ref)
    - Reference: `com.atproto.repo.strongRef`

### Errors

- `InvalidRequest`: No description in schema.
- `NotAdmin`: No description in schema.

## 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
}
```
