# ink.resenha.moderation.getState

> Requires the caller's service token.

- Kind: query
- Authority: moderation.resenha.ink
- Lexicon: 1
- Published by [resenha.ink](https://lexicon.garden/identity/did:plc:v7itjf4h3sb5zuegiiskctqb), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.moderation.getState)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.moderation.getState/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.moderation.getState/analytics)

## Query (`ink.resenha.moderation.getState`)

Type: query · GET

### Output (application/json)

- `maintainer` (boolean, required)
- `open` (integer): Reports not yet resolved.
  - Constraints: minimum: 0

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Requires the caller's service token.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "maintainer": {
              "type": "boolean"
            },
            "open": {
              "description": "Reports not yet resolved.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "maintainer"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "description": "Whether the caller is one of Resenha's maintainers, and how many reports await them. Cheap, for the Settings row and its badge.",
  "id": "ink.resenha.moderation.getState",
  "lexicon": 1
}
```
