# social.grain.admin.getInfo

> The state of this server: repos by status, records by collection, open reports and the database's size. Requires an admin session.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.getInfo)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.getInfo/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.admin.getInfo/analytics)

## Query (`social.grain.admin.getInfo`)

Type: query · GET

### Output (application/json)

- `collections` (array, required)
  - `items` (ref)
    - Reference: `social.grain.admin.defs#collectionCount`
- `databaseBytes` (integer)
- `openReports` (integer, required)
- `repos` (array, required)
  - `items` (ref)
    - Reference: `social.grain.admin.defs#statusCount`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The state of this server: repos by status, records by collection, open reports and the database's size. Requires an admin session.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collections": {
              "items": {
                "ref": "social.grain.admin.defs#collectionCount",
                "type": "ref"
              },
              "type": "array"
            },
            "databaseBytes": {
              "type": "integer"
            },
            "openReports": {
              "type": "integer"
            },
            "repos": {
              "items": {
                "ref": "social.grain.admin.defs#statusCount",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "repos",
            "collections",
            "openReports"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "social.grain.admin.getInfo",
  "lexicon": 1
}
```
